当前位置: 首页>>代码示例>>Java>>正文


Java JideSplitPane.setShowGripper方法代码示例

本文整理汇总了Java中com.jidesoft.swing.JideSplitPane.setShowGripper方法的典型用法代码示例。如果您正苦于以下问题:Java JideSplitPane.setShowGripper方法的具体用法?Java JideSplitPane.setShowGripper怎么用?Java JideSplitPane.setShowGripper使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jidesoft.swing.JideSplitPane的用法示例。


在下文中一共展示了JideSplitPane.setShowGripper方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import com.jidesoft.swing.JideSplitPane; //导入方法依赖的package包/类
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);
    }
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:23,代码来源:ChannelMetadataViewer.java

示例2: createAggregatorsAndVariablesPanel

import com.jidesoft.swing.JideSplitPane; //导入方法依赖的package包/类
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;
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:10,代码来源:BinningConfigurationPanel.java

示例3: init

import com.jidesoft.swing.JideSplitPane; //导入方法依赖的package包/类
private void init()
{
    setLayout(new MigLayout("insets 0 0 0 0",
        "[grow,fill]",
        "[grow,fill]"));

    //System Configuration View and Editor
    mAliasTable = new JTable(mAliasModel);
    mAliasTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    mAliasTable.getSelectionModel().addListSelectionListener(this);
    mAliasTable.setAutoCreateRowSorter(true);

    mAliasTable.getColumnModel().getColumn(AliasModel.COLUMN_COLOR)
        .setCellRenderer(new ColorCellRenderer());

    mAliasTable.getColumnModel().getColumn(AliasModel.COLUMN_ICON)
        .setCellRenderer(mIconCellRenderer);

    mTableFilterHeader = new TableFilterHeader(mAliasTable, AutoChoices.ENABLED);
    mTableFilterHeader.setFilterOnUpdates(true);

    JScrollPane tableScroller = new JScrollPane(mAliasTable);

    JPanel buttonsPanel = new JPanel();

    buttonsPanel.setLayout(
        new MigLayout("insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]"));

    mNewButton.addActionListener(this);
    mNewButton.setToolTipText("Adds a new alias");
    buttonsPanel.add(mNewButton);

    mCopyButton.addActionListener(this);
    mCopyButton.setEnabled(false);
    mCopyButton.setToolTipText("Creates a copy of the currently selected alias and adds it");
    buttonsPanel.add(mCopyButton);

    mDeleteButton.addActionListener(this);
    mDeleteButton.setEnabled(false);
    mDeleteButton.setToolTipText("Deletes the currently selected alias");
    buttonsPanel.add(mDeleteButton);

    JPanel listAndButtonsPanel = new JPanel();

    listAndButtonsPanel.setLayout(
        new MigLayout("insets 0 0 0 0", "[grow,fill]", "[grow,fill][]"));

    listAndButtonsPanel.add(tableScroller, "wrap");
    listAndButtonsPanel.add(buttonsPanel);

    mSplitPane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT);
    mSplitPane.setDividerSize(5);
    mSplitPane.setShowGripper(true);
    mSplitPane.add(listAndButtonsPanel);
    mSplitPane.add(mAliasEditor);

    add(mSplitPane);
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:59,代码来源:AliasController.java

示例4: init

import com.jidesoft.swing.JideSplitPane; //导入方法依赖的package包/类
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 );
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:63,代码来源:ChannelController.java

示例5: init

import com.jidesoft.swing.JideSplitPane; //导入方法依赖的package包/类
private void init()
{
    setLayout(new MigLayout("insets 0 0 0 0 ", "[grow,fill]", "[grow,fill]"));

    mBroadcastStatusPanel = new BroadcastStatusPanel(mBroadcastModel);

    mBroadcastStatusPanel.getTable().setAutoCreateRowSorter(true);
    mBroadcastStatusPanel.getTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    mBroadcastStatusPanel.getTable().getSelectionModel().addListSelectionListener(BroadcastPanel.this);

    JPanel buttonsPanel = new JPanel();
    buttonsPanel.setLayout(new MigLayout("insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]"));

    mNewButton = new JButton("New ...");
    mNewButton.setToolTipText("Create a new broadcast audio configuration");
    mNewButton.addMouseListener(new MouseAdapter()
    {
        @Override
        public void mouseClicked(MouseEvent e)
        {
            JPopupMenu menu = new JPopupMenu();

            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.BROADCASTIFY));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.ICECAST_TCP));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.ICECAST_HTTP));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.SHOUTCAST_V1));
            menu.add(new AddBroadcastConfigurationItem(BroadcastServerType.SHOUTCAST_V2));

            menu.show(e.getComponent(), e.getX(), e.getY());
        }
    });

    buttonsPanel.add(mNewButton);

    mCopyButton.addActionListener(this);
    mCopyButton.setEnabled(false);
    mCopyButton.setToolTipText("Creates a copy of the currently selected streaming configuration and adds it");
    buttonsPanel.add(mCopyButton);

    mDeleteButton.addActionListener(this);
    mDeleteButton.setEnabled(false);
    mDeleteButton.setToolTipText("Deletes the currently selected streaming configuration");
    buttonsPanel.add(mDeleteButton);

    JPanel listAndButtonsPanel = new JPanel();

    listAndButtonsPanel.setLayout(new MigLayout("insets 0 0 0 0", "[grow,fill]", "[grow,fill][]"));

    listAndButtonsPanel.add(mBroadcastStatusPanel, "wrap");
    listAndButtonsPanel.add(buttonsPanel);

    mSplitPane = new JideSplitPane(JideSplitPane.HORIZONTAL_SPLIT);
    mSplitPane.setDividerSize(5);
    mSplitPane.setShowGripper(true);
    mSplitPane.add(listAndButtonsPanel);

    mSplitPane.add(mEditor);

    add(mSplitPane);
}
 
开发者ID:DSheirer,项目名称:sdrtrunk,代码行数:61,代码来源:BroadcastPanel.java


注:本文中的com.jidesoft.swing.JideSplitPane.setShowGripper方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。