Examples of resetToPreferredSizes()


Examples of javax.swing.JSplitPane.resetToPreferredSizes()

      mTopPane = spane;
      mBottompane = new JScrollPane();
      JSplitPane splitpane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
      splitpane.setTopComponent(spane);
      splitpane.setBottomComponent(mBottompane);
      splitpane.resetToPreferredSizes();
      setJMenuBar(mbar);
      add(splitpane);
      pack();
      mPopup = new JPopupMenu();
      mPopup.add(new AddCalcTableAction());
View Full Code Here

Examples of javax.swing.JSplitPane.resetToPreferredSizes()

        splitter2.add(JSplitPane.TOP, splitter);
        splitter2.add(JSplitPane.BOTTOM, populateModules("bottom"));

        add(BorderLayout.CENTER, splitter2);
        splitter2.resetToPreferredSizes();

        add(BorderLayout.NORTH, populateModules("top"));

        populateModules("hidden");
       
View Full Code Here

Examples of javax.swing.JSplitPane.resetToPreferredSizes()

    } );
    m_tokens.setPreferredSize( new Dimension( 0, 200 ) );
    m_tokens.setMinimumSize( new Dimension( 0, 200 ) );
    JSplitPane callPanel = new JSplitPane( JSplitPane.VERTICAL_SPLIT, true, new JScrollPane( m_callsTree ), new JScrollPane( m_tokens ) );
    callPanel.setResizeWeight( 1 ); // let the top side take all the slack
    callPanel.resetToPreferredSizes();
   
    // layout controls
    JPanel centerPanel = new JPanel();
    centerPanel.setLayout( new BorderLayout() );
    centerPanel.add( m_infoPanel, BorderLayout.NORTH );
View Full Code Here

Examples of javax.swing.JSplitPane.resetToPreferredSizes()

    m_tabs.addTab( "Inheritance", inheritancePanel );
    m_tabs.addTab( "Implementations", implementationsPanel );
    m_tabs.addTab( "Call Graph", callPanel );
    JSplitPane splitRight = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, true, centerPanel, m_tabs );
    splitRight.setResizeWeight( 1 ); // let the left side take all the slack
    splitRight.resetToPreferredSizes();
    JSplitPane splitCenter = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, true, m_classesPanel, splitRight );
    splitCenter.setResizeWeight( 0 ); // let the right side take all the slack
    pane.add( splitCenter, BorderLayout.CENTER );
   
    // init menus
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.