FileChooser: scale file icons (issue #100)

This commit is contained in:
Karl Tauber
2020-05-16 11:03:40 +02:00
parent e75caf5833
commit f632c355e8
6 changed files with 216 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ public class FlatChooserTest
"[]",
// rows
"[top]" +
"[top]" +
"[grow,top]" +
"[]"));
//---- colorChooserLabel ----
@@ -73,7 +73,7 @@ public class FlatChooserTest
//---- fileChooserLabel ----
fileChooserLabel.setText("JFileChooser:");
add(fileChooserLabel, "cell 0 1");
add(fileChooser1, "cell 1 1");
add(fileChooser1, "cell 1 1,growy");
//---- label1 ----
label1.setText("icons:");

View File

@@ -1,4 +1,4 @@
JFDML JFormDesigner: "7.0.0.0.194" Java: "11.0.2" encoding: "UTF-8"
JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8"
new FormModel {
contentType: "form/swing"
@@ -9,7 +9,7 @@ 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][top][]"
"$rowConstraints": "[top][grow,top][]"
} ) {
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"
"value": "cell 1 1,growy"
} )
add( new FormComponent( "javax.swing.JLabel" ) {
name: "label1"