Selaa lähdekoodia

- fix material editor layout for some window managers (thanks to @madlion)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7937 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 vuotta sitten
vanhempi
commit
543a91a642

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/ColorPanel.form

@@ -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">
-              <Dimension value="[100, 0]"/>
+              <Dimension value="[100, 16]"/>
             </Property>
           </Properties>
         </Component>

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/ColorPanel.java

@@ -46,7 +46,7 @@ public class ColorPanel extends MaterialPropertyWidget {
         jToolBar1.setRollover(true);
 
         jLabel1.setText(org.openide.util.NbBundle.getMessage(ColorPanel.class, "ColorPanel.jLabel1.text")); // NOI18N
-        jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));
+        jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));
         jToolBar1.add(jLabel1);
 
         jPanel1.setBackground(new java.awt.Color(204, 204, 204));

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TextPanel.form

@@ -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">
-              <Dimension value="[100, 0]"/>
+              <Dimension value="[100, 16]"/>
             </Property>
           </Properties>
         </Component>

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TextPanel.java

@@ -46,7 +46,7 @@ public class TextPanel extends MaterialPropertyWidget {
         jToolBar1.setRollover(true);
 
         jLabel1.setText(org.openide.util.NbBundle.getMessage(TextPanel.class, "TextPanel.jLabel1.text")); // NOI18N
-        jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));
+        jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));
         jToolBar1.add(jLabel1);
 
         jPanel1.setBackground(new java.awt.Color(204, 204, 204));

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.form

@@ -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">
-              <Dimension value="[100, 0]"/>
+              <Dimension value="[100, 16]"/>
             </Property>
           </Properties>
         </Component>

+ 4 - 4
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java

@@ -92,7 +92,7 @@ public class TexturePanel extends MaterialPropertyWidget {
         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));
+        jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));
         jToolBar1.add(jLabel1);
 
         jPanel1.setBackground(new java.awt.Color(204, 204, 204));
@@ -111,7 +111,7 @@ public class TexturePanel extends MaterialPropertyWidget {
 
         jToolBar1.add(jPanel1);
 
-        jLabel2.setFont(new java.awt.Font("Courier", 0, 13)); // NOI18N
+        jLabel2.setFont(new java.awt.Font("Courier", 0, 13));
         jLabel2.setText(org.openide.util.NbBundle.getMessage(TexturePanel.class, "TexturePanel.jLabel2.text")); // NOI18N
         jLabel2.setMaximumSize(new java.awt.Dimension(200, 30));
         jLabel2.setPreferredSize(new java.awt.Dimension(200, 14));
@@ -128,7 +128,7 @@ public class TexturePanel extends MaterialPropertyWidget {
         });
         jToolBar1.add(jButton1);
 
-        jCheckBox1.setFont(new java.awt.Font("Lucida Grande", 0, 10)); // NOI18N
+        jCheckBox1.setFont(new java.awt.Font("Lucida Grande", 0, 10));
         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 @@ public class TexturePanel extends MaterialPropertyWidget {
         });
         jToolBar1.add(jCheckBox1);
 
-        jCheckBox2.setFont(new java.awt.Font("Lucida Grande", 0, 10)); // NOI18N
+        jCheckBox2.setFont(new java.awt.Font("Lucida Grande", 0, 10));
         jCheckBox2.setText(org.openide.util.NbBundle.getMessage(TexturePanel.class, "TexturePanel.jCheckBox2.text")); // NOI18N
         jCheckBox2.setFocusable(false);
         jCheckBox2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);