List of usage examples for javax.swing JTabbedPane WRAP_TAB_LAYOUT
int WRAP_TAB_LAYOUT
To view the source code for javax.swing JTabbedPane WRAP_TAB_LAYOUT.
Click Source Link
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashSwing.CFGCashSwingTenantEltJTabbedPane.java
public CFGCashSwingTenantEltJTabbedPane(ICFGCashSwingSchema argSchema, ICFGCashTenantObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }//from w ww . j a va 2s . c o m // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsTenant(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane addTab(LABEL_TabComponentsAcctCfgAttr, getTabViewComponentsAcctCfgAttrJScrollPane()); addTab(LABEL_TabComponentsTSecGroupList, getTabViewComponentsTSecGroupListJPanel()); addTab(LABEL_TabComponentsDomainBaseList, getTabViewComponentsDomainBaseListJPanel()); addTab(LABEL_TabComponentsTLDList, getTabViewComponentsTLDListJPanel()); addTab(LABEL_TabComponentsCtcListList, getTabViewComponentsCtcListListJPanel()); addTab(LABEL_TabComponentsTagList, getTabViewComponentsTagListJPanel()); addTab(LABEL_TabComponentsAccountList, getTabViewComponentsAccountListJPanel()); swingIsInitializing = false; }
From source file:components.TabComponentsDemo.java
private void initMenu() { JMenuBar menuBar = new JMenuBar(); //create Options menu tabComponentsItem = new JCheckBoxMenuItem("Use TabComponents", true); tabComponentsItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.ALT_MASK)); tabComponentsItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { for (int i = 0; i < pane.getTabCount(); i++) { if (tabComponentsItem.isSelected()) { initTabComponent(i); } else { pane.setTabComponentAt(i, null); }/*from ww w . ja v a 2 s . c om*/ } } }); scrollLayoutItem = new JCheckBoxMenuItem("Set ScrollLayout"); scrollLayoutItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.ALT_MASK)); scrollLayoutItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (pane.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT) { pane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT); } else { pane.setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT); } } }); JMenuItem resetItem = new JMenuItem("Reset JTabbedPane"); resetItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.ALT_MASK)); resetItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { runTest(); } }); JMenu optionsMenu = new JMenu("Options"); optionsMenu.add(tabComponentsItem); optionsMenu.add(scrollLayoutItem); optionsMenu.add(resetItem); menuBar.add(optionsMenu); setJMenuBar(menuBar); }
From source file:net.sourceforge.msscodefactory.cfasterisk.v2_2.CFAstSwing.CFAstSwingClusterEltJTabbedPane.java
public CFAstSwingClusterEltJTabbedPane(ICFAstSwingSchema argSchema, ICFAstClusterObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }//from w ww. j a va 2s .c o m // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsCluster(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane addTab(LABEL_TabComponentsHostNodeList, getTabViewComponentsHostNodeListJPanel()); addTab(LABEL_TabComponentsTenantList, getTabViewComponentsTenantListJPanel()); addTab(LABEL_TabComponentsSecAppList, getTabViewComponentsSecAppListJPanel()); addTab(LABEL_TabComponentsSecGroupList, getTabViewComponentsSecGroupListJPanel()); addTab(LABEL_TabComponentsSysClusterList, getTabViewComponentsSysClusterListJPanel()); swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingTenantEltJTabbedPane.java
public CFFreeSwitchSwingTenantEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema, ICFSecurityTenantObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }//from ww w. jav a 2s .co m // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsTenant(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane addTab(LABEL_TabComponentsTSecGroupList, getTabViewComponentsTSecGroupListJPanel()); addTab(LABEL_TabComponentsDomainBaseList, getTabViewComponentsDomainBaseListJPanel()); addTab(LABEL_TabComponentsTldList, getTabViewComponentsTldListJPanel()); addTab(LABEL_TabComponentsFSSofiaList, getTabViewComponentsFSSofiaListJPanel()); addTab(LABEL_TabComponentsFSSFDialerList, getTabViewComponentsFSSFDialerListJPanel()); addTab(LABEL_TabComponentsFSSFDialplanList, getTabViewComponentsFSSFDialplanListJPanel()); addTab(LABEL_TabComponentsFSSFProfileList, getTabViewComponentsFSSFProfileListJPanel()); addTab(LABEL_TabComponentsFSSFProfileDomList, getTabViewComponentsFSSFProfileDomListJPanel()); addTab(LABEL_TabComponentsFSSFProfileAlsList, getTabViewComponentsFSSFProfileAlsListJPanel()); addTab(LABEL_TabComponentsFSSFGatewayList, getTabViewComponentsFSSFGatewayListJPanel()); addTab(LABEL_TabComponentsFSSFConferenceList, getTabViewComponentsFSSFConferenceListJPanel()); addTab(LABEL_TabComponentsFSSFConferencePFList, getTabViewComponentsFSSFConferencePFListJPanel()); addTab(LABEL_TabComponentsFSSFDirectoryList, getTabViewComponentsFSSFDirectoryListJPanel()); addTab(LABEL_TabComponentsFSSFExtensionList, getTabViewComponentsFSSFExtensionListJPanel()); addTab(LABEL_TabComponentsFSSFVMailList, getTabViewComponentsFSSFVMailListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuList, getTabViewComponentsPbxIvrMenuListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuEntryList, getTabViewComponentsPbxIvrMenuEntryListJPanel()); swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswSwing.CFFswSwingTenantEltJTabbedPane.java
public CFFswSwingTenantEltJTabbedPane(ICFFswSwingSchema argSchema, ICFFswTenantObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }/*from ww w . ja v a2s . c om*/ // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsTenant(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane addTab(LABEL_TabComponentsTSecGroupList, getTabViewComponentsTSecGroupListJPanel()); addTab(LABEL_TabComponentsDomainBaseList, getTabViewComponentsDomainBaseListJPanel()); addTab(LABEL_TabComponentsTldList, getTabViewComponentsTldListJPanel()); addTab(LABEL_TabComponentsFSSofiaList, getTabViewComponentsFSSofiaListJPanel()); addTab(LABEL_TabComponentsFSSFDialerList, getTabViewComponentsFSSFDialerListJPanel()); addTab(LABEL_TabComponentsFSSFDialplanList, getTabViewComponentsFSSFDialplanListJPanel()); addTab(LABEL_TabComponentsFSSFProfileList, getTabViewComponentsFSSFProfileListJPanel()); addTab(LABEL_TabComponentsFSSFProfileDomList, getTabViewComponentsFSSFProfileDomListJPanel()); addTab(LABEL_TabComponentsFSSFProfileAlsList, getTabViewComponentsFSSFProfileAlsListJPanel()); addTab(LABEL_TabComponentsFSSFGatewayList, getTabViewComponentsFSSFGatewayListJPanel()); addTab(LABEL_TabComponentsFSSFConferenceList, getTabViewComponentsFSSFConferenceListJPanel()); addTab(LABEL_TabComponentsFSSFConferencePFList, getTabViewComponentsFSSFConferencePFListJPanel()); addTab(LABEL_TabComponentsFSSFDirectoryList, getTabViewComponentsFSSFDirectoryListJPanel()); addTab(LABEL_TabComponentsFSSFExtensionList, getTabViewComponentsFSSFExtensionListJPanel()); addTab(LABEL_TabComponentsFSSFVMailList, getTabViewComponentsFSSFVMailListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuList, getTabViewComponentsPbxIvrMenuListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuEntryList, getTabViewComponentsPbxIvrMenuEntryListJPanel()); swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswSwing.CFFswSwingTenantEltJTabbedPane.java
public CFFswSwingTenantEltJTabbedPane(ICFFswSwingSchema argSchema, ICFFswTenantObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }/*from ww w.j av a 2s.c o m*/ // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsTenant(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane addTab(LABEL_TabComponentsTSecGroupList, getTabViewComponentsTSecGroupListJPanel()); addTab(LABEL_TabComponentsDomainBaseList, getTabViewComponentsDomainBaseListJPanel()); addTab(LABEL_TabComponentsTLDList, getTabViewComponentsTLDListJPanel()); addTab(LABEL_TabComponentsFSSofiaList, getTabViewComponentsFSSofiaListJPanel()); addTab(LABEL_TabComponentsFSSFDialerList, getTabViewComponentsFSSFDialerListJPanel()); addTab(LABEL_TabComponentsFSSFDialplanList, getTabViewComponentsFSSFDialplanListJPanel()); addTab(LABEL_TabComponentsFSSFProfileList, getTabViewComponentsFSSFProfileListJPanel()); addTab(LABEL_TabComponentsFSSFProfileDomList, getTabViewComponentsFSSFProfileDomListJPanel()); addTab(LABEL_TabComponentsFSSFProfileAlsList, getTabViewComponentsFSSFProfileAlsListJPanel()); addTab(LABEL_TabComponentsFSSFGatewayList, getTabViewComponentsFSSFGatewayListJPanel()); addTab(LABEL_TabComponentsFSSFConferenceList, getTabViewComponentsFSSFConferenceListJPanel()); addTab(LABEL_TabComponentsFSSFConferencePFList, getTabViewComponentsFSSFConferencePFListJPanel()); addTab(LABEL_TabComponentsFSSFDirectoryList, getTabViewComponentsFSSFDirectoryListJPanel()); addTab(LABEL_TabComponentsFSSFExtensionList, getTabViewComponentsFSSFExtensionListJPanel()); addTab(LABEL_TabComponentsFSSFVMailList, getTabViewComponentsFSSFVMailListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuList, getTabViewComponentsPbxIvrMenuListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuEntryList, getTabViewComponentsPbxIvrMenuEntryListJPanel()); swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetSwing.CFInternetSwingTSecGroupMemberEltJTabbedPane.java
public CFInternetSwingTSecGroupMemberEltJTabbedPane(ICFInternetSwingSchema argSchema, ICFInternetTSecGroupMemberObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }//from ww w. j av a2 s. c o m // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsTSecGroupMember(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetSwing.CFInternetSwingURLProtocolEltJTabbedPane.java
public CFInternetSwingURLProtocolEltJTabbedPane(ICFInternetSwingSchema argSchema, ICFInternetURLProtocolObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }/*www. j av a 2 s .c o m*/ // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsURLProtocol(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_0.CFInternetSwing.CFInternetSwingVersionEltJTabbedPane.java
public CFInternetSwingVersionEltJTabbedPane(ICFInternetSwingSchema argSchema, ICFInternetVersionObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }/*ww w . ja v a2s . c o m*/ // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsVersion(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane swingIsInitializing = false; }
From source file:net.sourceforge.msscodefactory.cfinternet.v2_1.CFInternetSwing.CFInternetSwingAuditActionEltJTabbedPane.java
public CFInternetSwingAuditActionEltJTabbedPane(ICFInternetSwingSchema argSchema, ICFInternetAuditActionObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); }/*from w ww . j a v a 2 s .co m*/ // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsAuditAction(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane swingIsInitializing = false; }