- fix material editor layout for some window managers (thanks to @madlion)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7938 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2c635cf562
commit
6c4a84fa92
@ -51,7 +51,7 @@
|
|||||||
<Dimension value="[100, 16]"/>
|
<Dimension value="[100, 16]"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[100, 0]"/>
|
<Dimension value="[100, 16]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
|
@ -45,7 +45,7 @@ public class FloatPanel extends MaterialPropertyWidget {
|
|||||||
|
|
||||||
jLabel1.setText(org.openide.util.NbBundle.getMessage(FloatPanel.class, "FloatPanel.jLabel1.text")); // NOI18N
|
jLabel1.setText(org.openide.util.NbBundle.getMessage(FloatPanel.class, "FloatPanel.jLabel1.text")); // NOI18N
|
||||||
jLabel1.setMaximumSize(new java.awt.Dimension(100, 16));
|
jLabel1.setMaximumSize(new java.awt.Dimension(100, 16));
|
||||||
jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));
|
jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));
|
||||||
jToolBar1.add(jLabel1);
|
jToolBar1.add(jLabel1);
|
||||||
|
|
||||||
jPanel1.setBackground(new java.awt.Color(204, 204, 204));
|
jPanel1.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
@ -76,7 +76,7 @@ public class FloatPanel extends MaterialPropertyWidget {
|
|||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, Short.MAX_VALUE)
|
.addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<Dimension value="[100, 16]"/>
|
<Dimension value="[100, 16]"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[100, 0]"/>
|
<Dimension value="[100, 16]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
@ -63,9 +63,6 @@
|
|||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[100, 0]"/>
|
<Dimension value="[100, 0]"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="size" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
|
||||||
<Dimension value="[0, 0]"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
<Layout>
|
<Layout>
|
||||||
|
@ -45,12 +45,11 @@ public class IntPanel extends MaterialPropertyWidget {
|
|||||||
|
|
||||||
jLabel1.setText(org.openide.util.NbBundle.getMessage(IntPanel.class, "IntPanel.jLabel1.text")); // NOI18N
|
jLabel1.setText(org.openide.util.NbBundle.getMessage(IntPanel.class, "IntPanel.jLabel1.text")); // NOI18N
|
||||||
jLabel1.setMaximumSize(new java.awt.Dimension(100, 16));
|
jLabel1.setMaximumSize(new java.awt.Dimension(100, 16));
|
||||||
jLabel1.setPreferredSize(new java.awt.Dimension(100, 0));
|
jLabel1.setPreferredSize(new java.awt.Dimension(100, 16));
|
||||||
jToolBar1.add(jLabel1);
|
jToolBar1.add(jLabel1);
|
||||||
|
|
||||||
jPanel1.setBackground(new java.awt.Color(204, 204, 204));
|
jPanel1.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
jPanel1.setPreferredSize(new java.awt.Dimension(100, 0));
|
jPanel1.setPreferredSize(new java.awt.Dimension(100, 0));
|
||||||
jPanel1.setSize(new java.awt.Dimension(0, 0));
|
|
||||||
|
|
||||||
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
|
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
|
||||||
jPanel1.setLayout(jPanel1Layout);
|
jPanel1.setLayout(jPanel1Layout);
|
||||||
@ -77,7 +76,7 @@ public class IntPanel extends MaterialPropertyWidget {
|
|||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
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.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user