Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.MultiSplitLayout.layoutByWeight()


            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                JXMultiSplitPane pane = SwingXUtilities.getAncestor(JXMultiSplitPane.class, editor);
                if (pane != null) {
                    MultiSplitLayout layout = pane.getMultiSplitLayout();
                    layout.layoutByWeight(pane.getParent());
                }

            }
        };
        editor.addPropertyChangeListener("page", l);
View Full Code Here


    multiSplitPane.setDividerSize( 5 );
    multiSplitPane.getMultiSplitLayout().setModel( modelRoot );
   
    MultiSplitLayout multiSplitLayout = multiSplitPane.getMultiSplitLayout();
    multiSplitLayout.setLayoutMode( MultiSplitLayout.USER_MIN_SIZE_LAYOUT  );
    multiSplitLayout.layoutByWeight( multiSplitPane );

    cardPanel = new XCardPanel( multiSplitPane );

    dockingPanel.add( leftSidebar, BorderLayout.WEST );
    dockingPanel.add( rightSidebar, BorderLayout.EAST );
View Full Code Here

      layout = defaultLayoutDef;
   
    MultiSplitLayout.Node modelRoot = MultiSplitLayout.parseModel( layout );
    MultiSplitLayout multiSplitLayout = multiSplitPane.getMultiSplitLayout();
    multiSplitLayout.setModel( modelRoot );
    multiSplitLayout.layoutByWeight( multiSplitPane );
  }
 
  /**
   * Validate and repaint the display
   */
 
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.