Java Code Examples for com.jidesoft.swing.JideSplitPane#add()

The following examples show how to use com.jidesoft.swing.JideSplitPane#add() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JideSplitPaneDemo.java    From marathonv5 with Apache License 2.0 6 votes vote down vote up
private static JideSplitPane createSplitPane() {
    JTree tree = new JTree();
    JTable table = new JTable(new DefaultTableModel(10, 3));
    JList list = new JList(new Object[] { "A", "B", "C", "D", "E", "F", "G", "H", "I", }) {
        /**
         * 
         */
        private static final long serialVersionUID = 1L;

        public Dimension getPreferredScrollableViewportSize() {
            Dimension size = super.getPreferredScrollableViewportSize();
            size.width = 100;
            return size;
        }
    };

    _jideSplitPane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT);
    _jideSplitPane.setProportionalLayout(true);
    _jideSplitPane.add(new JScrollPane(tree), JideBoxLayout.FLEXIBLE);
    _jideSplitPane.add(new JScrollPane(table), JideBoxLayout.VARY);
    _jideSplitPane.add(new JScrollPane(list), JideBoxLayout.FLEXIBLE);
    return _jideSplitPane;
}
 
Example 2
Source File: AOIMonitoringToolView.java    From snap-desktop with GNU General Public License v3.0 6 votes vote down vote up
private JPanel createCentrePanel() {
    final JideSplitPane splitPane1V = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);

    aoiTable = new JTable();
    aoiTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    aoiTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    aoiTable.addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(final MouseEvent e) {
            final int clickCount = e.getClickCount();
            if (clickCount == 2) {
                performOpenAction();
            } else if (clickCount == 1) {
                performSelectAction();
            }
        }
    });
    splitPane1V.add(new JScrollPane(aoiTable));

    worldMapUI = new WorldMapUI();
    splitPane1V.add(worldMapUI.getWorlMapPane());

    return splitPane1V;
}
 
Example 3
Source File: BinningConfigurationPanel.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private JComponent createAggregatorsAndVariablesPanel() {
    JideSplitPane splitPane = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);
    splitPane.add(createAggregatorsPanel());
    splitPane.add(createVariablesPanel());
    splitPane.setShowGripper(true);
    splitPane.setProportionalLayout(true);
    splitPane.setProportions(new double[]{0.6});
    return splitPane;
}