mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Testing: fixed content panel insets and removed 5,5 gaps
This commit is contained in:
@@ -56,7 +56,7 @@ public class FlatChooserTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3,gap 5 5,ltr",
|
||||
"ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]",
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr"
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[][]"
|
||||
"$rowConstraints": "[top][top][]"
|
||||
} ) {
|
||||
|
||||
@@ -62,7 +62,7 @@ public class FlatComponents2Test
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3,gap 5 5,ltr",
|
||||
"ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[200]" +
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr"
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[][200][200]"
|
||||
"$rowConstraints": "[][][][::200][::150]"
|
||||
} ) {
|
||||
|
||||
@@ -178,7 +178,7 @@ public class FlatComponentsTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3,gap 5 5,ltr",
|
||||
"ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]" +
|
||||
@@ -760,7 +760,7 @@ public class FlatComponentsTest
|
||||
{
|
||||
panel3.setOpaque(false);
|
||||
panel3.setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3,gap 5 5,ltr",
|
||||
"ltr,insets 0,hidemode 3",
|
||||
// columns
|
||||
"[]",
|
||||
// rows
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr"
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[][][][][][]"
|
||||
"$rowConstraints": "[][][][][][][][][][][][][][][][][][][][][][]"
|
||||
} ) {
|
||||
@@ -713,7 +713,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$columnConstraints": "[]"
|
||||
"$rowConstraints": "[][][]"
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr"
|
||||
"$layoutConstraints": "ltr,insets 0,hidemode 3"
|
||||
} ) {
|
||||
name: "panel3"
|
||||
"opaque": false
|
||||
|
||||
@@ -104,7 +104,7 @@ public class FlatContainerTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3",
|
||||
"insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[grow,fill]",
|
||||
// rows
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3"
|
||||
"$layoutConstraints": "insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[grow,fill]"
|
||||
"$rowConstraints": "[grow,fill]"
|
||||
} ) {
|
||||
|
||||
@@ -103,7 +103,7 @@ public class FlatMenusTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3,gap 5 5,ltr",
|
||||
"ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[125]" +
|
||||
"[]" +
|
||||
@@ -157,7 +157,7 @@ public class FlatMenusTest
|
||||
{
|
||||
panel1.setOpaque(false);
|
||||
panel1.setLayout(new MigLayout(
|
||||
"insets 0,hidemode 3,gap 5 5,ltr",
|
||||
"ltr,insets 0,hidemode 3",
|
||||
// columns
|
||||
"[125,left]" +
|
||||
"[fill]",
|
||||
@@ -216,7 +216,7 @@ public class FlatMenusTest
|
||||
{
|
||||
panel2.setOpaque(false);
|
||||
panel2.setLayout(new MigLayout(
|
||||
"insets 0,gap 5 5",
|
||||
"insets 0",
|
||||
// columns
|
||||
"[fill]",
|
||||
// rows
|
||||
@@ -257,7 +257,7 @@ public class FlatMenusTest
|
||||
{
|
||||
panel3.setOpaque(false);
|
||||
panel3.setLayout(new MigLayout(
|
||||
"insets 0,gap 5 5",
|
||||
"insets 0",
|
||||
// columns
|
||||
"[fill]",
|
||||
// rows
|
||||
@@ -297,7 +297,7 @@ public class FlatMenusTest
|
||||
{
|
||||
panel4.setOpaque(false);
|
||||
panel4.setLayout(new MigLayout(
|
||||
"insets 0,gap 5 5",
|
||||
"insets 0",
|
||||
// columns
|
||||
"[fill]",
|
||||
// rows
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr"
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[125][][][][]"
|
||||
"$rowConstraints": "[][top][][]"
|
||||
} ) {
|
||||
@@ -50,7 +50,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$columnConstraints": "[125,left][fill]"
|
||||
"$rowConstraints": "[][][][][]"
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr"
|
||||
"$layoutConstraints": "ltr,insets 0,hidemode 3"
|
||||
} ) {
|
||||
name: "panel1"
|
||||
"opaque": false
|
||||
@@ -122,7 +122,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$columnConstraints": "[fill]"
|
||||
"$rowConstraints": "[][][][][]"
|
||||
"$layoutConstraints": "insets 0,gap 5 5"
|
||||
"$layoutConstraints": "insets 0"
|
||||
} ) {
|
||||
name: "panel2"
|
||||
"opaque": false
|
||||
@@ -163,7 +163,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$columnConstraints": "[fill]"
|
||||
"$rowConstraints": "[][][][]"
|
||||
"$layoutConstraints": "insets 0,gap 5 5"
|
||||
"$layoutConstraints": "insets 0"
|
||||
} ) {
|
||||
name: "panel3"
|
||||
"opaque": false
|
||||
@@ -204,7 +204,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$columnConstraints": "[fill]"
|
||||
"$rowConstraints": "[][][][]"
|
||||
"$layoutConstraints": "insets 0,gap 5 5"
|
||||
"$layoutConstraints": "insets 0"
|
||||
} ) {
|
||||
name: "panel4"
|
||||
"opaque": false
|
||||
|
||||
@@ -90,7 +90,7 @@ public class FlatOptionPaneTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"flowy,ltr,insets 0,hidemode 3,gap 5 5",
|
||||
"flowy,ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]" +
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "flowy,ltr,insets 0,hidemode 3,gap 5 5"
|
||||
"$layoutConstraints": "flowy,ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[][][fill]"
|
||||
"$rowConstraints": "[top][top][top][top][top][top][top][top]"
|
||||
} ) {
|
||||
@@ -239,7 +239,7 @@ new FormModel {
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 0 )
|
||||
"size": new java.awt.Dimension( 790, 840 )
|
||||
"size": new java.awt.Dimension( 790, 920 )
|
||||
} )
|
||||
}
|
||||
}
|
||||
|
||||
@@ -465,7 +465,7 @@ public class FlatTestFrame
|
||||
{
|
||||
Container contentPanelContentPane = contentPanel.getContentPane();
|
||||
contentPanelContentPane.setLayout(new MigLayout(
|
||||
"insets dialog,hidemode 3",
|
||||
"insets 0,hidemode 3",
|
||||
// columns
|
||||
"[grow,fill]",
|
||||
// rows
|
||||
|
||||
@@ -11,7 +11,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||
name: "dialogPane"
|
||||
add( new FormContainer( "javax.swing.JRootPane", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets dialog,hidemode 3"
|
||||
"$layoutConstraints": "insets 0,hidemode 3"
|
||||
"$columnConstraints": "[grow,fill]"
|
||||
"$rowConstraints": "[grow,fill]"
|
||||
} ) {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class FlatExtrasTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"hidemode 3,ltr",
|
||||
"ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[]" +
|
||||
"[]" +
|
||||
|
||||
@@ -4,7 +4,7 @@ new FormModel {
|
||||
contentType: "form/swing"
|
||||
root: new FormRoot {
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "hidemode 3,ltr"
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[][][left]"
|
||||
"$rowConstraints": "[][]"
|
||||
} ) {
|
||||
|
||||
@@ -103,7 +103,7 @@ public class FlatSwingXTest
|
||||
|
||||
//======== this ========
|
||||
setLayout(new MigLayout(
|
||||
"hidemode 3,ltr",
|
||||
"ltr,insets dialog,hidemode 3",
|
||||
// columns
|
||||
"[left]" +
|
||||
"[]" +
|
||||
|
||||
@@ -7,7 +7,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.defaultVariableLocal": true
|
||||
}
|
||||
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "hidemode 3,ltr"
|
||||
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||
"$columnConstraints": "[left][][][fill]"
|
||||
"$rowConstraints": "[]0[][]0[][][][][]"
|
||||
} ) {
|
||||
|
||||
Reference in New Issue
Block a user