Testing: fixed content panel insets and removed 5,5 gaps

This commit is contained in:
Karl Tauber
2019-10-25 10:44:24 +02:00
parent 61c3bbad60
commit 6e5e548c9d
18 changed files with 29 additions and 29 deletions

View File

@@ -56,7 +56,7 @@ public class FlatChooserTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"insets 0,hidemode 3,gap 5 5,ltr", "ltr,insets dialog,hidemode 3",
// columns // columns
"[]" + "[]" +
"[]", "[]",

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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": "[][]" "$columnConstraints": "[][]"
"$rowConstraints": "[top][top][]" "$rowConstraints": "[top][top][]"
} ) { } ) {

View File

@@ -62,7 +62,7 @@ public class FlatComponents2Test
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"insets 0,hidemode 3,gap 5 5,ltr", "ltr,insets dialog,hidemode 3",
// columns // columns
"[]" + "[]" +
"[200]" + "[200]" +

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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]" "$columnConstraints": "[][200][200]"
"$rowConstraints": "[][][][::200][::150]" "$rowConstraints": "[][][][::200][::150]"
} ) { } ) {

View File

@@ -178,7 +178,7 @@ public class FlatComponentsTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"insets 0,hidemode 3,gap 5 5,ltr", "ltr,insets dialog,hidemode 3",
// columns // columns
"[]" + "[]" +
"[]" + "[]" +
@@ -760,7 +760,7 @@ public class FlatComponentsTest
{ {
panel3.setOpaque(false); panel3.setOpaque(false);
panel3.setLayout(new MigLayout( panel3.setLayout(new MigLayout(
"insets 0,hidemode 3,gap 5 5,ltr", "ltr,insets 0,hidemode 3",
// columns // columns
"[]", "[]",
// rows // rows

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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": "[][][][][][]" "$columnConstraints": "[][][][][][]"
"$rowConstraints": "[][][][][][][][][][][][][][][][][][][][][][]" "$rowConstraints": "[][][][][][][][][][][][][][][][][][][][][][]"
} ) { } ) {
@@ -713,7 +713,7 @@ new FormModel {
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$columnConstraints": "[]" "$columnConstraints": "[]"
"$rowConstraints": "[][][]" "$rowConstraints": "[][][]"
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr" "$layoutConstraints": "ltr,insets 0,hidemode 3"
} ) { } ) {
name: "panel3" name: "panel3"
"opaque": false "opaque": false

View File

@@ -104,7 +104,7 @@ public class FlatContainerTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"insets 0,hidemode 3", "insets dialog,hidemode 3",
// columns // columns
"[grow,fill]", "[grow,fill]",
// rows // rows

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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]" "$columnConstraints": "[grow,fill]"
"$rowConstraints": "[grow,fill]" "$rowConstraints": "[grow,fill]"
} ) { } ) {

View File

@@ -103,7 +103,7 @@ public class FlatMenusTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"insets 0,hidemode 3,gap 5 5,ltr", "ltr,insets dialog,hidemode 3",
// columns // columns
"[125]" + "[125]" +
"[]" + "[]" +
@@ -157,7 +157,7 @@ public class FlatMenusTest
{ {
panel1.setOpaque(false); panel1.setOpaque(false);
panel1.setLayout(new MigLayout( panel1.setLayout(new MigLayout(
"insets 0,hidemode 3,gap 5 5,ltr", "ltr,insets 0,hidemode 3",
// columns // columns
"[125,left]" + "[125,left]" +
"[fill]", "[fill]",
@@ -216,7 +216,7 @@ public class FlatMenusTest
{ {
panel2.setOpaque(false); panel2.setOpaque(false);
panel2.setLayout(new MigLayout( panel2.setLayout(new MigLayout(
"insets 0,gap 5 5", "insets 0",
// columns // columns
"[fill]", "[fill]",
// rows // rows
@@ -257,7 +257,7 @@ public class FlatMenusTest
{ {
panel3.setOpaque(false); panel3.setOpaque(false);
panel3.setLayout(new MigLayout( panel3.setLayout(new MigLayout(
"insets 0,gap 5 5", "insets 0",
// columns // columns
"[fill]", "[fill]",
// rows // rows
@@ -297,7 +297,7 @@ public class FlatMenusTest
{ {
panel4.setOpaque(false); panel4.setOpaque(false);
panel4.setLayout(new MigLayout( panel4.setLayout(new MigLayout(
"insets 0,gap 5 5", "insets 0",
// columns // columns
"[fill]", "[fill]",
// rows // rows

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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][][][][]" "$columnConstraints": "[125][][][][]"
"$rowConstraints": "[][top][][]" "$rowConstraints": "[][top][][]"
} ) { } ) {
@@ -50,7 +50,7 @@ new FormModel {
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$columnConstraints": "[125,left][fill]" "$columnConstraints": "[125,left][fill]"
"$rowConstraints": "[][][][][]" "$rowConstraints": "[][][][][]"
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5,ltr" "$layoutConstraints": "ltr,insets 0,hidemode 3"
} ) { } ) {
name: "panel1" name: "panel1"
"opaque": false "opaque": false
@@ -122,7 +122,7 @@ new FormModel {
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$columnConstraints": "[fill]" "$columnConstraints": "[fill]"
"$rowConstraints": "[][][][][]" "$rowConstraints": "[][][][][]"
"$layoutConstraints": "insets 0,gap 5 5" "$layoutConstraints": "insets 0"
} ) { } ) {
name: "panel2" name: "panel2"
"opaque": false "opaque": false
@@ -163,7 +163,7 @@ new FormModel {
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$columnConstraints": "[fill]" "$columnConstraints": "[fill]"
"$rowConstraints": "[][][][]" "$rowConstraints": "[][][][]"
"$layoutConstraints": "insets 0,gap 5 5" "$layoutConstraints": "insets 0"
} ) { } ) {
name: "panel3" name: "panel3"
"opaque": false "opaque": false
@@ -204,7 +204,7 @@ new FormModel {
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$columnConstraints": "[fill]" "$columnConstraints": "[fill]"
"$rowConstraints": "[][][][]" "$rowConstraints": "[][][][]"
"$layoutConstraints": "insets 0,gap 5 5" "$layoutConstraints": "insets 0"
} ) { } ) {
name: "panel4" name: "panel4"
"opaque": false "opaque": false

View File

@@ -90,7 +90,7 @@ public class FlatOptionPaneTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"flowy,ltr,insets 0,hidemode 3,gap 5 5", "flowy,ltr,insets dialog,hidemode 3",
// columns // columns
"[]" + "[]" +
"[]" + "[]" +

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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]" "$columnConstraints": "[][][fill]"
"$rowConstraints": "[top][top][top][top][top][top][top][top]" "$rowConstraints": "[top][top][top][top][top][top][top][top]"
} ) { } ) {
@@ -239,7 +239,7 @@ new FormModel {
} ) } )
}, new FormLayoutConstraints( null ) { }, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 ) "location": new java.awt.Point( 0, 0 )
"size": new java.awt.Dimension( 790, 840 ) "size": new java.awt.Dimension( 790, 920 )
} ) } )
} }
} }

View File

@@ -465,7 +465,7 @@ public class FlatTestFrame
{ {
Container contentPanelContentPane = contentPanel.getContentPane(); Container contentPanelContentPane = contentPanel.getContentPane();
contentPanelContentPane.setLayout(new MigLayout( contentPanelContentPane.setLayout(new MigLayout(
"insets dialog,hidemode 3", "insets 0,hidemode 3",
// columns // columns
"[grow,fill]", "[grow,fill]",
// rows // rows

View File

@@ -11,7 +11,7 @@ new FormModel {
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "dialogPane" name: "dialogPane"
add( new FormContainer( "javax.swing.JRootPane", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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]" "$columnConstraints": "[grow,fill]"
"$rowConstraints": "[grow,fill]" "$rowConstraints": "[grow,fill]"
} ) { } ) {

View File

@@ -59,7 +59,7 @@ public class FlatExtrasTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"hidemode 3,ltr", "ltr,insets dialog,hidemode 3",
// columns // columns
"[]" + "[]" +
"[]" + "[]" +

View File

@@ -4,7 +4,7 @@ new FormModel {
contentType: "form/swing" contentType: "form/swing"
root: new FormRoot { root: new FormRoot {
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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]" "$columnConstraints": "[][][left]"
"$rowConstraints": "[][]" "$rowConstraints": "[][]"
} ) { } ) {

View File

@@ -103,7 +103,7 @@ public class FlatSwingXTest
//======== this ======== //======== this ========
setLayout(new MigLayout( setLayout(new MigLayout(
"hidemode 3,ltr", "ltr,insets dialog,hidemode 3",
// columns // columns
"[left]" + "[left]" +
"[]" + "[]" +

View File

@@ -7,7 +7,7 @@ new FormModel {
"JavaCodeGenerator.defaultVariableLocal": true "JavaCodeGenerator.defaultVariableLocal": true
} }
add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { 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]" "$columnConstraints": "[left][][][fill]"
"$rowConstraints": "[]0[][]0[][][][][]" "$rowConstraints": "[]0[][]0[][][][][]"
} ) { } ) {