Example usage for javax.swing JTabbedPane WRAP_TAB_LAYOUT

List of usage examples for javax.swing JTabbedPane WRAP_TAB_LAYOUT

Introduction

In this page you can find the example usage for javax.swing JTabbedPane WRAP_TAB_LAYOUT.

Prototype

int WRAP_TAB_LAYOUT

To view the source code for javax.swing JTabbedPane WRAP_TAB_LAYOUT.

Click Source Link

Document

The tab layout policy for wrapping tabs in multiple runs when all tabs will not fit within a single run.

Usage

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingSecAppEltJTabbedPane.java

public CFAsteriskSwingSecAppEltJTabbedPane(ICFAsteriskSwingSchema argSchema, ICFSecuritySecAppObj 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 w  w.  j  av a2  s  .  c om*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsSecApp(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsFormList, getTabViewComponentsFormListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingDomainEltJTabbedPane.java

public CFAsteriskSwingDomainEltJTabbedPane(ICFAsteriskSwingSchema argSchema, ICFInternetDomainObj 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 w w  .j av  a2s  .com*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsDomain(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsTopProjectList, getTabViewComponentsTopProjectListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingSecAppEltJTabbedPane.java

public CFFreeSwitchSwingSecAppEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema,
        ICFSecuritySecAppObj 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 w  w  .  java 2 s .  c o  m
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsSecApp(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsFormList, getTabViewComponentsFormListJPanel());
    swingIsInitializing = false;
}

From source file:Main.java

public void runTest() {
    pane.removeAll();/*from   w w  w . ja v a2s  . c o  m*/
    for (int i = 0; i < tabNumber; i++) {
        String title = "Tab " + i;
        pane.add(title, new JLabel(title));
    }
    tabComponentsItem.setSelected(true);
    pane.setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT);
    scrollLayoutItem.setSelected(false);
    setSize(new Dimension(400, 200));
    setLocationRelativeTo(null);
    setVisible(true);
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingISOCountryEltJTabbedPane.java

public CFCrmSwingISOCountryEltJTabbedPane(ICFCrmSwingSchema argSchema, ICFCrmISOCountryObj 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");
    }/* w  w  w.j  a v a  2  s .com*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsISOCountry(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsCurrencyList, getTabViewComponentsCurrencyListJPanel());
    addTab(LABEL_TabComponentsLanguageList, getTabViewComponentsLanguageListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingHostNodeEltJTabbedPane.java

public CFFreeSwitchSwingHostNodeEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema,
        ICFSecurityHostNodeObj 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 a va  2 s.  c o  m*/
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsHostNode(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsServiceList, getTabViewComponentsServiceListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfcrm.v2_0.CFCrmSwing.CFCrmSwingTopDomainEltJTabbedPane.java

public CFCrmSwingTopDomainEltJTabbedPane(ICFCrmSwingSchema argSchema, ICFCrmTopDomainObj 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;
    setSwingFocusAsTopDomain(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsSubDomainList, getTabViewComponentsSubDomainListJPanel());
    addTab(LABEL_TabComponentsTopProjectList, getTabViewComponentsTopProjectListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingISOCurrencyEltJTabbedPane.java

public CFAsteriskSwingISOCurrencyEltJTabbedPane(ICFAsteriskSwingSchema argSchema,
        ICFSecurityISOCurrencyObj 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 w  w . 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;
    setSwingFocusAsISOCurrency(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabChildrenCountryList, getTabViewChildrenCountryListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cfasterisk.v2_4.CFAsteriskSwing.CFAsteriskSwingISOLanguageEltJTabbedPane.java

public CFAsteriskSwingISOLanguageEltJTabbedPane(ICFAsteriskSwingSchema argSchema,
        ICFSecurityISOLanguageObj 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 w  w .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;
    setSwingFocusAsISOLanguage(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabChildrenCountryList, getTabViewChildrenCountryListJPanel());
    swingIsInitializing = false;
}

From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_4.CFFreeSwitchSwing.CFFreeSwitchSwingDomainEltJTabbedPane.java

public CFFreeSwitchSwingDomainEltJTabbedPane(ICFFreeSwitchSwingSchema argSchema,
        ICFInternetDomainObj 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");
    }//  w  w w . j a v a 2  s. c o m
    // argFocus is optional; focus may be set later during execution as
    // conditions of the runtime change.
    swingSchema = argSchema;
    setSwingFocusAsDomain(argFocus);
    // Wire the newly constructed JPanels/Tabs to this JTabbedPane
    addTab(LABEL_TabComponentsTopProjectList, getTabViewComponentsTopProjectListJPanel());
    swingIsInitializing = false;
}