From 8db05f47b5eb2b6bd8c5dcacc7bacd618323b039 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sun, 4 Oct 2020 23:59:28 +0200 Subject: [PATCH] FlatChooserTest: grow file chooser when resizing window --- .../java/com/formdev/flatlaf/testing/FlatChooserTest.java | 6 +++--- .../java/com/formdev/flatlaf/testing/FlatChooserTest.jfd | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.java b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.java index e37944b9..0a4b5b1b 100644 --- a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.java +++ b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.java @@ -59,10 +59,10 @@ public class FlatChooserTest "ltr,insets dialog,hidemode 3", // columns "[]" + - "[]", + "[grow]", // rows "[top]" + - "[grow,top]" + + "[grow,fill]" + "[]")); //---- colorChooserLabel ---- @@ -73,7 +73,7 @@ public class FlatChooserTest //---- fileChooserLabel ---- fileChooserLabel.setText("JFileChooser:"); add(fileChooserLabel, "cell 0 1"); - add(fileChooser1, "cell 1 1,growy"); + add(fileChooser1, "cell 1 1,growx"); //---- label1 ---- label1.setText("icons:"); diff --git a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.jfd b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.jfd index 6cf2bf4f..7cb82d64 100644 --- a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.jfd +++ b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatChooserTest.jfd @@ -1,4 +1,4 @@ -JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8" +JFDML JFormDesigner: "7.0.2.0.298" Java: "15" encoding: "UTF-8" new FormModel { contentType: "form/swing" @@ -8,8 +8,8 @@ new FormModel { } add( new FormContainer( "com.formdev.flatlaf.testing.FlatTestPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { "$layoutConstraints": "ltr,insets dialog,hidemode 3" - "$columnConstraints": "[][]" - "$rowConstraints": "[top][grow,top][]" + "$columnConstraints": "[][grow]" + "$rowConstraints": "[top][grow,fill][]" } ) { name: "this" add( new FormComponent( "javax.swing.JLabel" ) { @@ -32,7 +32,7 @@ new FormModel { add( new FormComponent( "javax.swing.JFileChooser" ) { name: "fileChooser1" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { - "value": "cell 1 1,growy" + "value": "cell 1 1,growx" } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "label1"