[hg] main-silver: #224390: Changing the order of subtabs in Libr...

  • From: Martin Kozeny < >
  • To:
  • Subject: [hg] main-silver: #224390: Changing the order of subtabs in Libr...
  • Date: Wed, 09 Jan 2013 06:10:53 -0800

changeset ea55d8d4f19a in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/ea55d8d4f19a
description:
        #224390: Changing the order of subtabs in Libraries to "Module 
Dependencies-Required Tokens-Wrapped Jars".

diffstat:

 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.form
 |  176 +++++-----
 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.java
 |  124 +++---
 2 files changed, 150 insertions(+), 150 deletions(-)

diffs (348 lines):

diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.form
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.form
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.form
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.form
@@ -143,94 +143,6 @@
 
       <Layout 
class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/>
       <SubComponents>
-        <Container class="javax.swing.JPanel" name="jPanelTokens">
-          <Constraints>
-            <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"
 
value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
-              <JTabbedPaneConstraints tabName="Required Tokens">
-                <Property name="tabTitle" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="LBL_TokensPanel" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                </Property>
-              </JTabbedPaneConstraints>
-            </Constraint>
-          </Constraints>
-
-          <Layout 
class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
-          <SubComponents>
-            <Container class="javax.swing.JScrollPane" name="reqTokenSP">
-              <AuxValues>
-                <AuxValue name="autoScrollPane" type="java.lang.Boolean" 
value="true"/>
-              </AuxValues>
-              <Constraints>
-                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
-                  <GridBagConstraints gridX="0" gridY="1" gridWidth="1" 
gridHeight="0" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="5" 
insetsBottom="5" insetsRight="12" anchor="10" weightX="1.0" weightY="0.5"/>
-                </Constraint>
-              </Constraints>
-
-              <Layout 
class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
-              <SubComponents>
-                <Component class="javax.swing.JList" name="reqTokenList">
-                  <AccessibilityProperties>
-                    <Property name="AccessibleContext.accessibleDescription" 
type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                      <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="ACSD_ReqTokenList" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                    </Property>
-                  </AccessibilityProperties>
-                </Component>
-              </SubComponents>
-            </Container>
-            <Component class="javax.swing.JLabel" name="requiredTokensLabel">
-              <Properties>
-                <Property name="text" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="LBL_RequiredTokens" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                </Property>
-              </Properties>
-              <Constraints>
-                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
-                  <GridBagConstraints gridX="0" gridY="0" gridWidth="2" 
gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="5" 
insetsBottom="5" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
-                </Constraint>
-              </Constraints>
-            </Component>
-            <Component class="javax.swing.JButton" name="addTokenButton">
-              <Properties>
-                <Property name="text" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="CTL_AddButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                </Property>
-              </Properties>
-              <AccessibilityProperties>
-                <Property name="AccessibleContext.accessibleDescription" 
type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="ACSD_AddTokenButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                </Property>
-              </AccessibilityProperties>
-              <Events>
-                <EventHandler event="actionPerformed" 
listener="java.awt.event.ActionListener" 
parameters="java.awt.event.ActionEvent" handler="addToken"/>
-              </Events>
-              <Constraints>
-                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
-                  <GridBagConstraints gridX="1" gridY="1" gridWidth="1" 
gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="1" insetsLeft="0" 
insetsBottom="4" insetsRight="9" anchor="18" weightX="0.0" weightY="0.0"/>
-                </Constraint>
-              </Constraints>
-            </Component>
-            <Component class="javax.swing.JButton" name="removeTokenButton">
-              <Properties>
-                <Property name="text" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="CTL_RemoveButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                </Property>
-              </Properties>
-              <AccessibilityProperties>
-                <Property name="AccessibleContext.accessibleDescription" 
type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
-                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="ACSD_RemoveTokenButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
-                </Property>
-              </AccessibilityProperties>
-              <Events>
-                <EventHandler event="actionPerformed" 
listener="java.awt.event.ActionListener" 
parameters="java.awt.event.ActionEvent" handler="removeToken"/>
-              </Events>
-              <Constraints>
-                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
-                  <GridBagConstraints gridX="1" gridY="2" gridWidth="1" 
gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="0" 
insetsBottom="4" insetsRight="9" anchor="11" weightX="0.0" weightY="0.0"/>
-                </Constraint>
-              </Constraints>
-            </Component>
-          </SubComponents>
-        </Container>
         <Container class="javax.swing.JPanel" name="jPanelModules">
           <Constraints>
             <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"
 
value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
@@ -354,6 +266,94 @@
             </Component>
           </SubComponents>
         </Container>
+        <Container class="javax.swing.JPanel" name="jPanelTokens">
+          <Constraints>
+            <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"
 
value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
+              <JTabbedPaneConstraints tabName="Required Tokens">
+                <Property name="tabTitle" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="LBL_TokensPanel" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                </Property>
+              </JTabbedPaneConstraints>
+            </Constraint>
+          </Constraints>
+
+          <Layout 
class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
+          <SubComponents>
+            <Container class="javax.swing.JScrollPane" name="reqTokenSP">
+              <AuxValues>
+                <AuxValue name="autoScrollPane" type="java.lang.Boolean" 
value="true"/>
+              </AuxValues>
+              <Constraints>
+                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
+                  <GridBagConstraints gridX="0" gridY="1" gridWidth="1" 
gridHeight="0" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="5" 
insetsBottom="5" insetsRight="12" anchor="10" weightX="1.0" weightY="0.5"/>
+                </Constraint>
+              </Constraints>
+
+              <Layout 
class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+              <SubComponents>
+                <Component class="javax.swing.JList" name="reqTokenList">
+                  <AccessibilityProperties>
+                    <Property name="AccessibleContext.accessibleDescription" 
type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                      <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="ACSD_ReqTokenList" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                    </Property>
+                  </AccessibilityProperties>
+                </Component>
+              </SubComponents>
+            </Container>
+            <Component class="javax.swing.JLabel" name="requiredTokensLabel">
+              <Properties>
+                <Property name="text" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="LBL_RequiredTokens" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                </Property>
+              </Properties>
+              <Constraints>
+                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
+                  <GridBagConstraints gridX="0" gridY="0" gridWidth="2" 
gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="5" 
insetsBottom="5" insetsRight="0" anchor="18" weightX="0.0" weightY="0.0"/>
+                </Constraint>
+              </Constraints>
+            </Component>
+            <Component class="javax.swing.JButton" name="addTokenButton">
+              <Properties>
+                <Property name="text" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="CTL_AddButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                </Property>
+              </Properties>
+              <AccessibilityProperties>
+                <Property name="AccessibleContext.accessibleDescription" 
type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="ACSD_AddTokenButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                </Property>
+              </AccessibilityProperties>
+              <Events>
+                <EventHandler event="actionPerformed" 
listener="java.awt.event.ActionListener" 
parameters="java.awt.event.ActionEvent" handler="addToken"/>
+              </Events>
+              <Constraints>
+                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
+                  <GridBagConstraints gridX="1" gridY="1" gridWidth="1" 
gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="1" insetsLeft="0" 
insetsBottom="4" insetsRight="9" anchor="18" weightX="0.0" weightY="0.0"/>
+                </Constraint>
+              </Constraints>
+            </Component>
+            <Component class="javax.swing.JButton" name="removeTokenButton">
+              <Properties>
+                <Property name="text" type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="CTL_RemoveButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                </Property>
+              </Properties>
+              <AccessibilityProperties>
+                <Property name="AccessibleContext.accessibleDescription" 
type="java.lang.String" 
editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+                  <ResourceString 
bundle="org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties"
 key="ACSD_RemoveTokenButton" 
replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, 
&quot;{key}&quot;)"/>
+                </Property>
+              </AccessibilityProperties>
+              <Events>
+                <EventHandler event="actionPerformed" 
listener="java.awt.event.ActionListener" 
parameters="java.awt.event.ActionEvent" handler="removeToken"/>
+              </Events>
+              <Constraints>
+                <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" 
value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
+                  <GridBagConstraints gridX="1" gridY="2" gridWidth="1" 
gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="5" insetsLeft="0" 
insetsBottom="4" insetsRight="9" anchor="11" weightX="0.0" weightY="0.0"/>
+                </Constraint>
+              </Constraints>
+            </Component>
+          </SubComponents>
+        </Container>
         <Container class="javax.swing.JPanel" name="jPanelJars">
           <Constraints>
             <Constraint 
layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"
 
value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.java
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.java
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.java
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/CustomizerLibraries.java
@@ -293,12 +293,6 @@
         javaPlatformCombo = new javax.swing.JComboBox();
         javaPlatformButton = new javax.swing.JButton();
         jTabbedPane1 = new javax.swing.JTabbedPane();
-        jPanelTokens = new javax.swing.JPanel();
-        reqTokenSP = new javax.swing.JScrollPane();
-        reqTokenList = new javax.swing.JList();
-        requiredTokensLabel = new javax.swing.JLabel();
-        addTokenButton = new javax.swing.JButton();
-        removeTokenButton = new javax.swing.JButton();
         jPanelModules = new javax.swing.JPanel();
         dependencySP = new javax.swing.JScrollPane();
         dependencyList = new javax.swing.JList();
@@ -307,6 +301,12 @@
         removeDepButton = new javax.swing.JButton();
         moduleDepsLabel = new javax.swing.JLabel();
         editDepButton = new javax.swing.JButton();
+        jPanelTokens = new javax.swing.JPanel();
+        reqTokenSP = new javax.swing.JScrollPane();
+        reqTokenList = new javax.swing.JList();
+        requiredTokensLabel = new javax.swing.JLabel();
+        addTokenButton = new javax.swing.JButton();
+        removeTokenButton = new javax.swing.JButton();
         jPanelJars = new javax.swing.JPanel();
         jLabel1 = new javax.swing.JLabel();
         wrappedJarsSP = new javax.swing.JScrollPane();
@@ -390,62 +390,6 @@
 
         add(platformsPanel, java.awt.BorderLayout.PAGE_START);
 
-        jPanelTokens.setLayout(new java.awt.GridBagLayout());
-
-        reqTokenSP.setViewportView(reqTokenList);
-        
reqTokenList.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "ACSD_ReqTokenList")); // NOI18N
-
-        gridBagConstraints = new java.awt.GridBagConstraints();
-        gridBagConstraints.gridx = 0;
-        gridBagConstraints.gridy = 1;
-        gridBagConstraints.gridheight = 
java.awt.GridBagConstraints.REMAINDER;
-        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
-        gridBagConstraints.weightx = 1.0;
-        gridBagConstraints.weighty = 0.5;
-        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 12);
-        jPanelTokens.add(reqTokenSP, gridBagConstraints);
-
-        org.openide.awt.Mnemonics.setLocalizedText(requiredTokensLabel, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"LBL_RequiredTokens")); // NOI18N
-        gridBagConstraints = new java.awt.GridBagConstraints();
-        gridBagConstraints.gridx = 0;
-        gridBagConstraints.gridy = 0;
-        gridBagConstraints.gridwidth = 2;
-        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
-        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
-        jPanelTokens.add(requiredTokensLabel, gridBagConstraints);
-
-        org.openide.awt.Mnemonics.setLocalizedText(addTokenButton, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"CTL_AddButton")); // NOI18N
-        addTokenButton.addActionListener(new java.awt.event.ActionListener() 
{
-            public void actionPerformed(java.awt.event.ActionEvent evt) {
-                addToken(evt);
-            }
-        });
-        gridBagConstraints = new java.awt.GridBagConstraints();
-        gridBagConstraints.gridx = 1;
-        gridBagConstraints.gridy = 1;
-        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
-        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
-        gridBagConstraints.insets = new java.awt.Insets(1, 0, 4, 9);
-        jPanelTokens.add(addTokenButton, gridBagConstraints);
-        
addTokenButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "ACSD_AddTokenButton")); // NOI18N
-
-        org.openide.awt.Mnemonics.setLocalizedText(removeTokenButton, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"CTL_RemoveButton")); // NOI18N
-        removeTokenButton.addActionListener(new 
java.awt.event.ActionListener() {
-            public void actionPerformed(java.awt.event.ActionEvent evt) {
-                removeToken(evt);
-            }
-        });
-        gridBagConstraints = new java.awt.GridBagConstraints();
-        gridBagConstraints.gridx = 1;
-        gridBagConstraints.gridy = 2;
-        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
-        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
-        gridBagConstraints.insets = new java.awt.Insets(5, 0, 4, 9);
-        jPanelTokens.add(removeTokenButton, gridBagConstraints);
-        
removeTokenButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "ACSD_RemoveTokenButton")); // NOI18N
-
-        
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "LBL_TokensPanel"), jPanelTokens); // NOI18N
-
         jPanelModules.setLayout(new java.awt.GridBagLayout());
 
         dependencySP.setViewportView(dependencyList);
@@ -532,6 +476,62 @@
 
         
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "LBL_ModulesPanel"), jPanelModules); // NOI18N
 
+        jPanelTokens.setLayout(new java.awt.GridBagLayout());
+
+        reqTokenSP.setViewportView(reqTokenList);
+        
reqTokenList.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "ACSD_ReqTokenList")); // NOI18N
+
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.gridheight = 
java.awt.GridBagConstraints.REMAINDER;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
+        gridBagConstraints.weightx = 1.0;
+        gridBagConstraints.weighty = 0.5;
+        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 12);
+        jPanelTokens.add(reqTokenSP, gridBagConstraints);
+
+        org.openide.awt.Mnemonics.setLocalizedText(requiredTokensLabel, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"LBL_RequiredTokens")); // NOI18N
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 0;
+        gridBagConstraints.gridy = 0;
+        gridBagConstraints.gridwidth = 2;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
+        jPanelTokens.add(requiredTokensLabel, gridBagConstraints);
+
+        org.openide.awt.Mnemonics.setLocalizedText(addTokenButton, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"CTL_AddButton")); // NOI18N
+        addTokenButton.addActionListener(new java.awt.event.ActionListener() 
{
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                addToken(evt);
+            }
+        });
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 1;
+        gridBagConstraints.gridy = 1;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
+        gridBagConstraints.insets = new java.awt.Insets(1, 0, 4, 9);
+        jPanelTokens.add(addTokenButton, gridBagConstraints);
+        
addTokenButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "ACSD_AddTokenButton")); // NOI18N
+
+        org.openide.awt.Mnemonics.setLocalizedText(removeTokenButton, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"CTL_RemoveButton")); // NOI18N
+        removeTokenButton.addActionListener(new 
java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                removeToken(evt);
+            }
+        });
+        gridBagConstraints = new java.awt.GridBagConstraints();
+        gridBagConstraints.gridx = 1;
+        gridBagConstraints.gridy = 2;
+        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
+        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
+        gridBagConstraints.insets = new java.awt.Insets(5, 0, 4, 9);
+        jPanelTokens.add(removeTokenButton, gridBagConstraints);
+        
removeTokenButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "ACSD_RemoveTokenButton")); // NOI18N
+
+        
jTabbedPane1.addTab(org.openide.util.NbBundle.getMessage(CustomizerLibraries.class,
 "LBL_TokensPanel"), jPanelTokens); // NOI18N
+
         jPanelJars.setLayout(new java.awt.GridBagLayout());
 
         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, 
org.openide.util.NbBundle.getMessage(CustomizerLibraries.class, 
"LBL_WrappedJars")); // NOI18N

[hg] main-silver: #224390: Changing the order of subtabs in Libr...

Martin Kozeny 01/09/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close