Patch for SDK Alpha 4 for material editor label issues

Hi,



i have issues with hidden labels in material editor.

See:

http://fishheadsoftware.de/jme3/Screenshot-MaterialEditor-Issue.png



I just change the size of the hidden labels from 0 to 16px and now i see them.



Here are my patches.



ColorPanel.form

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -48,7 +48,7 @@

<ResourceString bundle="com/jme3/gde/materials/multiview/widgets/Bundle.properties" key="ColorPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>

</Property>

<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

  •          &lt;Dimension value=&quot;[100, 0]&quot;/&gt;<br />
    
  •          &lt;Dimension value=&quot;[100, 16]&quot;/&gt;<br />
    

</Property>

</Properties>

</Component>

@@ -68,12 +68,12 @@

<Layout>

<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;8&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;10&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

<DimensionLayout dim="1">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;28&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;0&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

</Layout>

[/patch]



ColorPanel.java

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -46,7 +46,7 @@

jToolBar1.setRollover(true);



jLabel1.setText(org.openide.util.NbBundle.getMessage(ColorPanel.class, "ColorPanel.jLabel1.text")); // NOI18N

  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));<br />
    
  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));<br />
    

jToolBar1.add(jLabel1);



jPanel1.setBackground(new java.awt.Color(204, 204, 204));

@@ -57,11 +57,11 @@

jPanel1.setLayout(jPanel1Layout);

jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 8, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 10, Short.MAX_VALUE)<br />
    

);

jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 28, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 0, Short.MAX_VALUE)<br />
    

);



jToolBar1.add(jPanel1);

[/patch]



TextPanel.form

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -48,7 +48,7 @@

<ResourceString bundle="com/jme3/gde/materials/multiview/widgets/Bundle.properties" key="TextPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>

</Property>

<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

  •          &lt;Dimension value=&quot;[100, 0]&quot;/&gt;<br />
    
  •          &lt;Dimension value=&quot;[100, 16]&quot;/&gt;<br />
    

</Property>

</Properties>

</Component>

@@ -65,12 +65,12 @@

<Layout>

<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;4&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;10&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

<DimensionLayout dim="1">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;28&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;0&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

</Layout>

[/patch]



TextPanel.java

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -46,7 +46,7 @@

jToolBar1.setRollover(true);



jLabel1.setText(org.openide.util.NbBundle.getMessage(TextPanel.class, "TextPanel.jLabel1.text")); // NOI18N

  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));<br />
    
  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));<br />
    

jToolBar1.add(jLabel1);



jPanel1.setBackground(new java.awt.Color(204, 204, 204));

@@ -56,11 +56,11 @@

jPanel1.setLayout(jPanel1Layout);

jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 4, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 10, Short.MAX_VALUE)<br />
    

);

jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 28, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 0, Short.MAX_VALUE)<br />
    

);



jToolBar1.add(jPanel1);

[/patch]



TexturePanel.form

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -54,7 +54,7 @@

<ResourceString bundle="com/jme3/gde/materials/multiview/widgets/Bundle.properties" key="TexturePanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>

</Property>

<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

  •          &lt;Dimension value=&quot;[100, 0]&quot;/&gt;<br />
    
  •          &lt;Dimension value=&quot;[100, 16]&quot;/&gt;<br />
    

</Property>

</Properties>

</Component>

@@ -71,12 +71,12 @@

<Layout>

<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;1&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;10&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

<DimensionLayout dim="1">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;28&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;0&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

</Layout>

[/patch]



TexturePanel.java

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -92,7 +92,7 @@

jToolBar1.setPreferredSize(new java.awt.Dimension(212, 32));



jLabel1.setText(org.openide.util.NbBundle.getMessage(TexturePanel.class, "TexturePanel.jLabel1.text")); // NOI18N

  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));<br />
    
  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));<br />
    

jToolBar1.add(jLabel1);



jPanel1.setBackground(new java.awt.Color(204, 204, 204));

@@ -102,11 +102,11 @@

jPanel1.setLayout(jPanel1Layout);

jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 1, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 10, Short.MAX_VALUE)<br />
    

);

jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 28, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 0, Short.MAX_VALUE)<br />
    

);



jToolBar1.add(jPanel1);

@@ -128,7 +128,7 @@

});

jToolBar1.add(jButton1);


  •    jCheckBox1.setFont(new java.awt.Font(&quot;Lucida Grande&quot;, 0, 10)); // NOI18N<br />
    
  •    jCheckBox1.setFont(new java.awt.Font(&quot;Lucida Grande&quot;, 0, 10));<br />
    

jCheckBox1.setText(org.openide.util.NbBundle.getMessage(TexturePanel.class, "TexturePanel.jCheckBox1.text")); // NOI18N

jCheckBox1.setFocusable(false);

jCheckBox1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

@@ -139,7 +139,7 @@

});

jToolBar1.add(jCheckBox1);


  •    jCheckBox2.setFont(new java.awt.Font(&quot;Lucida Grande&quot;, 0, 10)); // NOI18N<br />
    
  •    jCheckBox2.setFont(new java.awt.Font(&quot;Lucida Grande&quot;, 0, 10));<br />
    

jCheckBox2.setText(org.openide.util.NbBundle.getMessage(TexturePanel.class, "TexturePanel.jCheckBox2.text")); // NOI18N

jCheckBox2.setFocusable(false);

jCheckBox2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);

[/patch]

Thanks, committed

Wow that was a fast commit. ^^

Heh, I heard of some people not being able to read the UI properly but all their babbling was not as clear as your fix :wink: This happens only on Linux / with certain LAF’s I guess.

Well i had this issue for a long time but didn’t want to just report it. ^^



OK i missed some files…



FloatPanel.form

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -51,7 +51,7 @@

<Dimension value="[100, 16]"/>

</Property>

<Property name=“preferredSize” type=“java.awt.Dimension” editor=“org.netbeans.beaninfo.editors.DimensionEditor”>

  •          &lt;Dimension value=&quot;[100, 0]&quot;/&gt;<br />
    
  •          &lt;Dimension value=&quot;[100, 16]&quot;/&gt;<br />
    

</Property>

</Properties>

</Component>

@@ -68,12 +68,12 @@

<Layout>

<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;50&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;100&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

<DimensionLayout dim="1">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;28&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;25&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

</Layout>

[/patch]



FloatPanel.java

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -45,7 +45,7 @@



jLabel1.setText(org.openide.util.NbBundle.getMessage(FloatPanel.class, "FloatPanel.jLabel1.text")); // NOI18N

jLabel1.setMaximumSize(new java.awt.Dimension(100, 16));

  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));<br />
    
  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));<br />
    

jToolBar1.add(jLabel1);



jPanel1.setBackground(new java.awt.Color(204, 204, 204));

@@ -55,11 +55,11 @@

jPanel1.setLayout(jPanel1Layout);

jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 50, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 100, Short.MAX_VALUE)<br />
    

);

jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addGap(0, 28, Short.MAX_VALUE)<br />
    
  •        .addGap(0, 25, Short.MAX_VALUE)<br />
    

);



jToolBar1.add(jPanel1);

@@ -76,7 +76,7 @@

this.setLayout(layout);

layout.setHorizontalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

  •        .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, Short.MAX_VALUE)<br />
    
  •        .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)<br />
    

);

layout.setVerticalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

[/patch]



IntPanel.form

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -51,7 +51,7 @@

<Dimension value="[100, 16]"/>

</Property>

<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

  •          &lt;Dimension value=&quot;[100, 0]&quot;/&gt;<br />
    
  •          &lt;Dimension value=&quot;[100, 16]&quot;/&gt;<br />
    

</Property>

</Properties>

</Component>

@@ -63,20 +63,17 @@

<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

<Dimension value="[100, 0]"/>

</Property>

  •        &lt;Property name=&quot;size&quot; type=&quot;java.awt.Dimension&quot; editor=&quot;org.netbeans.beaninfo.editors.DimensionEditor&quot;&gt;<br />
    
  •          &lt;Dimension value=&quot;[0, 0]&quot;/&gt;<br />
    
  •        &lt;/Property&gt;<br />
    

</Properties>



<Layout>

<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;25&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;100&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

<DimensionLayout dim="1">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;28&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;0&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

</Layout>

[/patch]



IntPanel.java

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -45,22 +45,21 @@



jLabel1.setText(org.openide.util.NbBundle.getMessage(IntPanel.class, "IntPanel.jLabel1.text")); // NOI18N

jLabel1.setMaximumSize(new java.awt.Dimension(100, 16));

  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));<br />
    
  •    jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));<br />
    

jToolBar1.add(jLabel1);



jPanel1.setBackground(new java.awt.Color(204, 204, 204));

jPanel1.setPreferredSize(new java.awt.Dimension(100, 0));

  •    jPanel1.setSize(new java.awt.Dimension(0, 0));<br />
    

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 25, Short.MAX_VALUE)
+ .addGap(0, 100, Short.MAX_VALUE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 28, Short.MAX_VALUE)
+ .addGap(0, 0, Short.MAX_VALUE)
);

jToolBar1.add(jPanel1);
@@ -77,7 +76,7 @@
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, Short.MAX_VALUE)
+ .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
[/patch]

Some new fixes.



BooleanPanel.form

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -64,9 +64,6 @@

<Dimension value="[0, 0]"/>

</Property>

<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

  •          &lt;Dimension value=&quot;[32767, 23]&quot;/&gt;<br />
    
  •        &lt;/Property&gt;<br />
    
  •        &lt;Property name=&quot;size&quot; type=&quot;java.awt.Dimension&quot; editor=&quot;org.netbeans.beaninfo.editors.DimensionEditor&quot;&gt;<br />
    

<Dimension value="[10, 0]"/>

</Property>

</Properties>

@@ -74,12 +71,12 @@

<Layout>

<DimensionLayout dim="0">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;0&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;10&quot; max=&quot;10&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

<DimensionLayout dim="1">

<Group type="103" groupAlignment="0" attributes="0">

  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;23&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    
  •              &lt;EmptySpace min=&quot;0&quot; pref=&quot;0&quot; max=&quot;32767&quot; attributes=&quot;0&quot;/&gt;<br />
    

</Group>

</DimensionLayout>

</Layout>

[/patch]



BooleanPanel.java

[patch]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -50,18 +50,17 @@



jPanel1.setBackground(new java.awt.Color(204, 204, 204));

jPanel1.setMinimumSize(new java.awt.Dimension(0, 0));

  •    jPanel1.setPreferredSize(new java.awt.Dimension(32767, 23));<br />
    
  •    jPanel1.setSize(new java.awt.Dimension(10, 0));<br />
    
  •    jPanel1.setPreferredSize(new java.awt.Dimension(10, 0));<br />
    

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 0, Short.MAX_VALUE)
+ .addGap(0, 10, 10)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 23, Short.MAX_VALUE)
+ .addGap(0, 0, Short.MAX_VALUE)
);

jToolBar1.add(jPanel1);
[/patch]

OnOffPanel.form
[patch]
--- Remotely Modified (Based On HEAD)
+++ Locally Modified (Based On LOCAL)
@@ -64,9 +64,6 @@
<Dimension value="[0, 0]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[32767, 23]"/>
- </Property>
- <Property name="size" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[10, 0]"/>
</Property>
</Properties>
@@ -74,12 +71,12 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
+ <EmptySpace min="0" pref="10" max="10" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="23" max="32767" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
[/patch]

OnOffPanel.java
[patch]
--- Remotely Modified (Based On HEAD)
+++ Locally Modified (Based On LOCAL)
@@ -50,18 +50,17 @@

jPanel1.setBackground(new java.awt.Color(204, 204, 204));
jPanel1.setMinimumSize(new java.awt.Dimension(0, 0));
- jPanel1.setPreferredSize(new java.awt.Dimension(32767, 23));
- jPanel1.setSize(new java.awt.Dimension(10, 0));
+ jPanel1.setPreferredSize(new java.awt.Dimension(10, 0));

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 0, Short.MAX_VALUE)
+ .addGap(0, 10, 10)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 23, Short.MAX_VALUE)
+ .addGap(0, 0, Short.MAX_VALUE)
);

jToolBar1.add(jPanel1);
[/patch]