mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 15:27:16 -06:00
FlatChooserTest: grow file chooser when resizing window
This commit is contained in:
@@ -59,10 +59,10 @@ public class FlatChooserTest
|
|||||||
"ltr,insets dialog,hidemode 3",
|
"ltr,insets dialog,hidemode 3",
|
||||||
// columns
|
// columns
|
||||||
"[]" +
|
"[]" +
|
||||||
"[]",
|
"[grow]",
|
||||||
// rows
|
// rows
|
||||||
"[top]" +
|
"[top]" +
|
||||||
"[grow,top]" +
|
"[grow,fill]" +
|
||||||
"[]"));
|
"[]"));
|
||||||
|
|
||||||
//---- colorChooserLabel ----
|
//---- colorChooserLabel ----
|
||||||
@@ -73,7 +73,7 @@ public class FlatChooserTest
|
|||||||
//---- fileChooserLabel ----
|
//---- fileChooserLabel ----
|
||||||
fileChooserLabel.setText("JFileChooser:");
|
fileChooserLabel.setText("JFileChooser:");
|
||||||
add(fileChooserLabel, "cell 0 1");
|
add(fileChooserLabel, "cell 0 1");
|
||||||
add(fileChooser1, "cell 1 1,growy");
|
add(fileChooser1, "cell 1 1,growx");
|
||||||
|
|
||||||
//---- label1 ----
|
//---- label1 ----
|
||||||
label1.setText("icons:");
|
label1.setText("icons:");
|
||||||
|
|||||||
@@ -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 {
|
new FormModel {
|
||||||
contentType: "form/swing"
|
contentType: "form/swing"
|
||||||
@@ -8,8 +8,8 @@ new FormModel {
|
|||||||
}
|
}
|
||||||
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": "ltr,insets dialog,hidemode 3"
|
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||||
"$columnConstraints": "[][]"
|
"$columnConstraints": "[][grow]"
|
||||||
"$rowConstraints": "[top][grow,top][]"
|
"$rowConstraints": "[top][grow,fill][]"
|
||||||
} ) {
|
} ) {
|
||||||
name: "this"
|
name: "this"
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
@@ -32,7 +32,7 @@ new FormModel {
|
|||||||
add( new FormComponent( "javax.swing.JFileChooser" ) {
|
add( new FormComponent( "javax.swing.JFileChooser" ) {
|
||||||
name: "fileChooser1"
|
name: "fileChooser1"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 1 1,growy"
|
"value": "cell 1 1,growx"
|
||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "label1"
|
name: "label1"
|
||||||
|
|||||||
Reference in New Issue
Block a user