[hg] main-silver: Issue #233243 - text field vertical size incon...

  • From: Jan Peska < >
  • To:
  • Subject: [hg] main-silver: Issue #233243 - text field vertical size incon...
  • Date: Thu, 08 Aug 2013 12:53:41 -0700

changeset 5251cc6b40da in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/5251cc6b40da
description:
        Issue #233243 - text field vertical size inconsistency in 'Issue 
Tracking' options window in Nimbus l&f
        Fix textfield vertical size issue

diffstat:

 
bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.form
 |  22 +--------
 
bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.java
 |  12 +----
 2 files changed, 6 insertions(+), 28 deletions(-)

diffs (102 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.form
 
b/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.form
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.form
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.form
@@ -37,14 +37,14 @@
                                   <Group type="102" alignment="0" 
attributes="0">
                                       <Component id="cbLimit" min="-2" 
max="-2" attributes="0"/>
                                       <EmptySpace max="-2" attributes="0"/>
-                                      <Component id="txtLimitNumber" 
min="-2" max="-2" attributes="0"/>
+                                      <Component id="txtLimitNumber" 
min="-2" pref="46" max="-2" attributes="0"/>
                                       <EmptySpace max="-2" attributes="0"/>
                                       <Component id="jLabel5" min="-2" 
max="-2" attributes="0"/>
                                   </Group>
                                   <Group type="102" attributes="0">
                                       <Component id="cbSync" min="-2" 
max="-2" attributes="0"/>
                                       <EmptySpace max="-2" attributes="0"/>
-                                      <Component id="txtSync" min="-2" 
max="-2" attributes="0"/>
+                                      <Component id="txtSync" min="-2" 
pref="46" max="-2" attributes="0"/>
                                   </Group>
                                   <Group type="102" alignment="0" 
attributes="0">
                                       <EmptySpace min="21" pref="21" 
max="-2" attributes="0"/>
@@ -59,7 +59,7 @@
                           </Group>
                           <Component id="lblError" alignment="0" min="-2" 
max="-2" attributes="0"/>
                       </Group>
-                      <EmptySpace min="0" pref="100" max="32767" 
attributes="0"/>
+                      <EmptySpace min="0" pref="134" max="32767" 
attributes="0"/>
                   </Group>
               </Group>
               <EmptySpace max="-2" attributes="0"/>
@@ -125,14 +125,6 @@
     <Component class="javax.swing.JSeparator" name="jSeparator1">
     </Component>
     <Component class="javax.swing.JTextField" name="txtSync">
-      <Properties>
-        <Property name="minimumSize" type="java.awt.Dimension" 
editor="org.netbeans.beaninfo.editors.DimensionEditor">
-          <Dimension value="[30, 20]"/>
-        </Property>
-        <Property name="preferredSize" type="java.awt.Dimension" 
editor="org.netbeans.beaninfo.editors.DimensionEditor">
-          <Dimension value="[40, 20]"/>
-        </Property>
-      </Properties>
     </Component>
     <Component class="javax.swing.JLabel" name="jLabel4">
       <Properties>
@@ -144,14 +136,6 @@
     <Component class="javax.swing.JSeparator" name="jSeparator2">
     </Component>
     <Component class="javax.swing.JTextField" name="txtLimitNumber">
-      <Properties>
-        <Property name="minimumSize" type="java.awt.Dimension" 
editor="org.netbeans.beaninfo.editors.DimensionEditor">
-          <Dimension value="[30, 20]"/>
-        </Property>
-        <Property name="preferredSize" type="java.awt.Dimension" 
editor="org.netbeans.beaninfo.editors.DimensionEditor">
-          <Dimension value="[40, 20]"/>
-        </Property>
-      </Properties>
     </Component>
     <Component class="javax.swing.JLabel" name="jLabel5">
       <Properties>
diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.java
 
b/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/settings/DashboardOptions.java
@@ -90,14 +90,8 @@
 
         org.openide.awt.Mnemonics.setLocalizedText(jLabel1, 
org.openide.util.NbBundle.getMessage(DashboardOptions.class, 
"DashboardOptions.jLabel1.text")); // NOI18N
 
-        txtSync.setMinimumSize(new java.awt.Dimension(30, 20));
-        txtSync.setPreferredSize(new java.awt.Dimension(40, 20));
-
         org.openide.awt.Mnemonics.setLocalizedText(jLabel4, 
org.openide.util.NbBundle.getMessage(DashboardOptions.class, 
"DashboardOptions.jLabel4.text")); // NOI18N
 
-        txtLimitNumber.setMinimumSize(new java.awt.Dimension(30, 20));
-        txtLimitNumber.setPreferredSize(new java.awt.Dimension(40, 20));
-
         org.openide.awt.Mnemonics.setLocalizedText(jLabel5, 
org.openide.util.NbBundle.getMessage(DashboardOptions.class, 
"DashboardOptions.jLabel5.text")); // NOI18N
 
         lblError.setForeground(java.awt.Color.red);
@@ -149,13 +143,13 @@
                                     .addGroup(layout.createSequentialGroup()
                                         .addComponent(cbLimit)
                                         
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                        .addComponent(txtLimitNumber, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                                        .addComponent(txtLimitNumber, 
javax.swing.GroupLayout.PREFERRED_SIZE, 46, 
javax.swing.GroupLayout.PREFERRED_SIZE)
                                         
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                         .addComponent(jLabel5))
                                     .addGroup(layout.createSequentialGroup()
                                         .addComponent(cbSync)
                                         
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                        .addComponent(txtSync, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                                        .addComponent(txtSync, 
javax.swing.GroupLayout.PREFERRED_SIZE, 46, 
javax.swing.GroupLayout.PREFERRED_SIZE))
                                     .addGroup(layout.createSequentialGroup()
                                         .addGap(21, 21, 21)
                                         .addComponent(jLabel6)
@@ -164,7 +158,7 @@
                                             .addComponent(cbLimitQuery)
                                             
.addComponent(cbLimitCategory)))))
                             .addComponent(lblError))
-                        .addGap(0, 100, Short.MAX_VALUE)))
+                        .addGap(0, 134, Short.MAX_VALUE)))
                 .addContainerGap())
         );
         layout.setVerticalGroup(

[hg] main-silver: Issue #233243 - text field vertical size incon...

Jan Peska 08/08/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close