本文整理汇总了Java中com.jidesoft.swing.JideSplitPane.VERTICAL_SPLIT属性的典型用法代码示例。如果您正苦于以下问题:Java JideSplitPane.VERTICAL_SPLIT属性的具体用法?Java JideSplitPane.VERTICAL_SPLIT怎么用?Java JideSplitPane.VERTICAL_SPLIT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.jidesoft.swing.JideSplitPane
的用法示例。
在下文中一共展示了JideSplitPane.VERTICAL_SPLIT属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
private void init()
{
setLayout( new MigLayout( "insets 0 0 0 0", "[grow,fill]", "[grow,fill]") );
JideTabbedPane tabbedPane = new JideTabbedPane();
tabbedPane.addTab("Details", mChannelDetailPanel);
tabbedPane.addTab("Events", mCallEventPanel);
tabbedPane.addTab("Messages", mMessageActivityPanel);
// tabbedPane.addTab("Spectrum", mChannelSpectrumPanel);
tabbedPane.setFont(this.getFont());
tabbedPane.setForeground(Color.BLACK);
JideSplitPane splitPane = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);
splitPane.setShowGripper(true);
splitPane.add(mChannelMetadataPanel);
splitPane.add(tabbedPane);
add(splitPane);
mChannelMetadataPanel.addProcessingChainSelectionListener(mChannelDetailPanel);
mChannelMetadataPanel.addProcessingChainSelectionListener(mCallEventPanel);
mChannelMetadataPanel.addProcessingChainSelectionListener(mMessageActivityPanel);
}
示例2: CDataNodeComponent
/**
* Creates a new data node component.
*
* @param module Module whose data is shown in the component.
* @param originContainer
*/
public CDataNodeComponent(final INaviModule module, final IViewContainer originContainer) {
super(new BorderLayout());
Preconditions.checkNotNull(module, "IE01960: Module argument can not be null");
final JideSplitPane splitPane = new JideSplitPane(JideSplitPane.VERTICAL_SPLIT);
splitPane.setDoubleBuffered(true);
splitPane.setOneTouchExpandable(true);
splitPane.setMinimumSize(new Dimension(0, 0));
splitPane.setProportionalLayout(true);
splitPane.setInitiallyEven(true);
final JPanel panel = new JPanel(new BorderLayout());
dataSectionComponent = new DataSectionComponent(module, originContainer);
panel.add(dataSectionComponent);
final JTabbedPane pane = new JTabbedPane();
pane.addTab("Navigation", new CNavigationPanel(dataSectionComponent.getHexView()));
splitPane.addPane(panel);
splitPane.addPane(pane);
add(splitPane);
}
示例3: createCentrePanel
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;
}
示例4: createAggregatorsAndVariablesPanel
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;
}
示例5: init
private void init()
{
setLayout( new MigLayout( "", "[grow,fill]", "[grow,fill]") );
//System Configuration View and Editor
mChannelTable = new JTable( mChannelModel );
mChannelTable.setDefaultRenderer( String.class, new ChannelTableCellRenderer() );
mChannelTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );
mChannelTable.getSelectionModel().addListSelectionListener( this );
mChannelTable.setAutoCreateRowSorter( true );
mTableFilterHeader = new TableFilterHeader( mChannelTable, AutoChoices.ENABLED );
mTableFilterHeader.setFilterOnUpdates( true );
JScrollPane channelScroller = new JScrollPane( mChannelTable );
JPanel buttonsPanel = new JPanel();
buttonsPanel.setLayout(
new MigLayout( "insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]") );
mNewChannelButton.addActionListener( this );
mNewChannelButton.setToolTipText( "Create a new channel configuration" );
buttonsPanel.add( mNewChannelButton );
mCopyChannelButton.addActionListener( this );
mCopyChannelButton.setEnabled( false );
mCopyChannelButton.setToolTipText( "Create a copy of the currently selected channel configuration" );
buttonsPanel.add( mCopyChannelButton );
mDeleteChannelButton.addActionListener( this );
mDeleteChannelButton.setEnabled( false );
mDeleteChannelButton.setToolTipText( "Delete the currently selected channel configuration" );
buttonsPanel.add( mDeleteChannelButton );
JPanel listAndButtonsPanel = new JPanel();
listAndButtonsPanel.setLayout(
new MigLayout( "insets 0 0 0 0", "[grow,fill]", "[grow,fill][]") );
listAndButtonsPanel.add( channelScroller, "wrap" );
listAndButtonsPanel.add( buttonsPanel );
JideSplitPane splitPane = new JideSplitPane( JideSplitPane.VERTICAL_SPLIT );
splitPane.setDividerSize( 5 );
splitPane.setShowGripper( true );
//Shrink this guy so that he'll eventually be expanded to the scroller preferred size
listAndButtonsPanel.setPreferredSize( new Dimension( 10, 10 ) );
//Attempt to get a 60:40 vertical sizing preference
JScrollPane listScroller = new JScrollPane( listAndButtonsPanel );
listScroller.setPreferredSize( new Dimension( 800, 58 ) );
JScrollPane editorScroller = new JScrollPane( mEditor );
editorScroller.setPreferredSize( new Dimension( 800, 42 ) );
splitPane.add( listScroller );
splitPane.add( editorScroller );
add( splitPane );
}