Examples of JXCollapsiblePane


Examples of org.jdesktop.swingx.JXCollapsiblePane

        JComponent extended = createExtendedConfigPanel();
        add(extended, BorderLayout.EAST);
    }

    private JComponent createExtendedConfigPanel() {
        JXCollapsiblePane painterControl = new JXCollapsiblePane();
        FormLayout formLayout = new FormLayout(
                "5dlu, r:d:n, l:4dlu:n, f:d:g", // , l:4dlu:n, f:d:g", // columns
                "c:d:n " +
                ", t:4dlu:n, c:d:n " +
                ", t:4dlu:n, c:d:n" +
View Full Code Here

Examples of org.jdesktop.swingx.JXCollapsiblePane

    /**
     * @return
     */
    private JXCollapsiblePane createAreaPainterControlPanel() {
        JXCollapsiblePane painterControl = new JXCollapsiblePane();
        FormLayout formLayout = new FormLayout(
                "5dlu, r:d:n, l:4dlu:n, f:d:n", // columns
                "c:d:n " +
                ", t:4dlu:n, c:d:n " +
                ", t:4dlu:n, c:d:n" +
View Full Code Here

Examples of org.jdesktop.swingx.JXCollapsiblePane

   
    /**
     * @return
     */
    private JXCollapsiblePane createBasePainterControlPanel() {
        JXCollapsiblePane painterControl = new JXCollapsiblePane();
        FormLayout formLayout = new FormLayout(
                "5dlu, r:d:n, l:4dlu:n, f:d:n", // columns
                "c:d:n " +
                ", t:4dlu:n, c:d:n " +
                ", t:4dlu:n, c:d:n" +
View Full Code Here

Examples of org.jdesktop.swingx.JXCollapsiblePane

    /**
     * @return
     */
    private JXCollapsiblePane createLayoutPainterControl() {
        JXCollapsiblePane painterControl = new JXCollapsiblePane();//new JXPanel();

        FormLayout formLayout = new FormLayout(
                "5dlu, r:d:n, l:4dlu:n, f:d:n, l:4dlu:n, f:d:n", // columns
                "c:d:n " +
                ", t:4dlu:n, c:d:n " +
View Full Code Here

Examples of org.jdesktop.swingx.JXCollapsiblePane

        if (!(component instanceof JXCollapsiblePane)) {
            // something wrong in this JXTaskPane
            return super.getPreferredSize(c);
        }

        JXCollapsiblePane collapsible = (JXCollapsiblePane) component;
        Dimension dim = collapsible.getPreferredSize();

        Border groupBorder = group.getBorder();
        if (groupBorder instanceof PaneBorder) {
            ((PaneBorder) groupBorder).label.setDisplayedMnemonic(group
                    .getMnemonic());
View Full Code Here

Examples of org.jdesktop.swingx.JXCollapsiblePane

*/
public class JXCollapsiblePaneTest implements Runnable {

    @Override
    public void run() {
        JXCollapsiblePane cp = new JXCollapsiblePane();

        // JXCollapsiblePane can be used like any other container
        cp.setLayout(new BorderLayout());

        // the Controls panel with a textfield to filter the tree
        JPanel controls = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 0));
        controls.add(new JLabel("Search:"));
        controls.add(new JTextField(10));
        controls.add(new JButton("Refresh"));
        controls.setBorder(new TitledBorder("Filters"));
        cp.add("Center", controls);

        JXFrame frame = new JXFrame();
        frame.setLayout(new BorderLayout());

        // Put the "Controls" first
        frame.add("North", cp);

        // Then the tree - we assume the Controls would somehow filter the tree
        JScrollPane scroll = new JScrollPane(new JTree());
        frame.add("Center", scroll);

        // Show/hide the "Controls"
        JButton toggle = new JButton(cp.getActionMap().get(JXCollapsiblePane.TOGGLE_ACTION));
        toggle.setText("Show/Hide Search Panel");
        frame.add("South", toggle);

        frame.pack();
        frame.setVisible(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.