Demo: use uppercase leading characters

This commit is contained in:
Karl Tauber
2020-06-22 23:35:56 +02:00
parent cf436962f8
commit 27eeb0a636
6 changed files with 260 additions and 258 deletions

View File

@@ -158,12 +158,12 @@ class BasicComponentsPanel
add(labelLabel, "cell 0 0"); add(labelLabel, "cell 0 0");
//---- label1 ---- //---- label1 ----
label1.setText("enabled"); label1.setText("Enabled");
label1.setDisplayedMnemonic('E'); label1.setDisplayedMnemonic('E');
add(label1, "cell 1 0"); add(label1, "cell 1 0");
//---- label2 ---- //---- label2 ----
label2.setText("disabled"); label2.setText("Disabled");
label2.setDisplayedMnemonic('D'); label2.setDisplayedMnemonic('D');
label2.setEnabled(false); label2.setEnabled(false);
add(label2, "cell 2 0"); add(label2, "cell 2 0");
@@ -173,23 +173,23 @@ class BasicComponentsPanel
add(buttonLabel, "cell 0 1"); add(buttonLabel, "cell 0 1");
//---- button1 ---- //---- button1 ----
button1.setText("enabled"); button1.setText("Enabled");
button1.setDisplayedMnemonicIndex(0); button1.setDisplayedMnemonicIndex(0);
add(button1, "cell 1 1"); add(button1, "cell 1 1");
//---- button2 ---- //---- button2 ----
button2.setText("disabled"); button2.setText("Disabled");
button2.setDisplayedMnemonicIndex(0); button2.setDisplayedMnemonicIndex(0);
button2.setEnabled(false); button2.setEnabled(false);
add(button2, "cell 2 1"); add(button2, "cell 2 1");
//---- button5 ---- //---- button5 ----
button5.setText("square"); button5.setText("Square");
button5.putClientProperty("JButton.buttonType", "square"); button5.putClientProperty("JButton.buttonType", "square");
add(button5, "cell 3 1"); add(button5, "cell 3 1");
//---- button6 ---- //---- button6 ----
button6.setText("round"); button6.setText("Round");
button6.putClientProperty("JButton.buttonType", "roundRect"); button6.putClientProperty("JButton.buttonType", "roundRect");
add(button6, "cell 4 1"); add(button6, "cell 4 1");
@@ -225,23 +225,23 @@ class BasicComponentsPanel
add(checkBoxLabel, "cell 0 2"); add(checkBoxLabel, "cell 0 2");
//---- checkBox1 ---- //---- checkBox1 ----
checkBox1.setText("enabled"); checkBox1.setText("Enabled");
checkBox1.setMnemonic('A'); checkBox1.setMnemonic('A');
add(checkBox1, "cell 1 2"); add(checkBox1, "cell 1 2");
//---- checkBox2 ---- //---- checkBox2 ----
checkBox2.setText("disabled"); checkBox2.setText("Disabled");
checkBox2.setEnabled(false); checkBox2.setEnabled(false);
checkBox2.setMnemonic('D'); checkBox2.setMnemonic('D');
add(checkBox2, "cell 2 2"); add(checkBox2, "cell 2 2");
//---- checkBox3 ---- //---- checkBox3 ----
checkBox3.setText("selected"); checkBox3.setText("Selected");
checkBox3.setSelected(true); checkBox3.setSelected(true);
add(checkBox3, "cell 3 2"); add(checkBox3, "cell 3 2");
//---- checkBox4 ---- //---- checkBox4 ----
checkBox4.setText("selected disabled"); checkBox4.setText("Selected disabled");
checkBox4.setSelected(true); checkBox4.setSelected(true);
checkBox4.setEnabled(false); checkBox4.setEnabled(false);
add(checkBox4, "cell 4 2"); add(checkBox4, "cell 4 2");
@@ -251,23 +251,23 @@ class BasicComponentsPanel
add(radioButtonLabel, "cell 0 3"); add(radioButtonLabel, "cell 0 3");
//---- radioButton1 ---- //---- radioButton1 ----
radioButton1.setText("enabled"); radioButton1.setText("Enabled");
radioButton1.setMnemonic('N'); radioButton1.setMnemonic('N');
add(radioButton1, "cell 1 3"); add(radioButton1, "cell 1 3");
//---- radioButton2 ---- //---- radioButton2 ----
radioButton2.setText("disabled"); radioButton2.setText("Disabled");
radioButton2.setEnabled(false); radioButton2.setEnabled(false);
radioButton2.setMnemonic('S'); radioButton2.setMnemonic('S');
add(radioButton2, "cell 2 3"); add(radioButton2, "cell 2 3");
//---- radioButton3 ---- //---- radioButton3 ----
radioButton3.setText("selected"); radioButton3.setText("Selected");
radioButton3.setSelected(true); radioButton3.setSelected(true);
add(radioButton3, "cell 3 3"); add(radioButton3, "cell 3 3");
//---- radioButton4 ---- //---- radioButton4 ----
radioButton4.setText("selected disabled"); radioButton4.setText("Selected disabled");
radioButton4.setSelected(true); radioButton4.setSelected(true);
radioButton4.setEnabled(false); radioButton4.setEnabled(false);
add(radioButton4, "cell 4 3"); add(radioButton4, "cell 4 3");
@@ -281,7 +281,7 @@ class BasicComponentsPanel
//---- comboBox1 ---- //---- comboBox1 ----
comboBox1.setEditable(true); comboBox1.setEditable(true);
comboBox1.setModel(new DefaultComboBoxModel<>(new String[] { comboBox1.setModel(new DefaultComboBoxModel<>(new String[] {
"editable", "Editable",
"a", "a",
"bb", "bb",
"ccc" "ccc"
@@ -292,7 +292,7 @@ class BasicComponentsPanel
comboBox2.setEditable(true); comboBox2.setEditable(true);
comboBox2.setEnabled(false); comboBox2.setEnabled(false);
comboBox2.setModel(new DefaultComboBoxModel<>(new String[] { comboBox2.setModel(new DefaultComboBoxModel<>(new String[] {
"disabled", "Disabled",
"a", "a",
"bb", "bb",
"ccc" "ccc"
@@ -301,7 +301,7 @@ class BasicComponentsPanel
//---- comboBox3 ---- //---- comboBox3 ----
comboBox3.setModel(new DefaultComboBoxModel<>(new String[] { comboBox3.setModel(new DefaultComboBoxModel<>(new String[] {
"not editable", "Not editable",
"a", "a",
"bb", "bb",
"ccc" "ccc"
@@ -310,7 +310,7 @@ class BasicComponentsPanel
//---- comboBox4 ---- //---- comboBox4 ----
comboBox4.setModel(new DefaultComboBoxModel<>(new String[] { comboBox4.setModel(new DefaultComboBoxModel<>(new String[] {
"not editable disabled", "Not editable disabled",
"a", "a",
"bb", "bb",
"ccc" "ccc"
@@ -320,7 +320,7 @@ class BasicComponentsPanel
//---- comboBox5 ---- //---- comboBox5 ----
comboBox5.setModel(new DefaultComboBoxModel<>(new String[] { comboBox5.setModel(new DefaultComboBoxModel<>(new String[] {
"wide popup if text is longer", "Wide popup if text is longer",
"aa", "aa",
"bbb", "bbb",
"cccc" "cccc"
@@ -340,7 +340,7 @@ class BasicComponentsPanel
//---- comboBox6 ---- //---- comboBox6 ----
comboBox6.setEditable(true); comboBox6.setEditable(true);
comboBox6.putClientProperty("JTextField.placeholderText", "placeholder"); comboBox6.putClientProperty("JTextField.placeholderText", "Placeholder");
add(comboBox6, "cell 5 5,growx"); add(comboBox6, "cell 5 5,growx");
//---- textFieldLabel ---- //---- textFieldLabel ----
@@ -350,28 +350,28 @@ class BasicComponentsPanel
add(textFieldLabel, "cell 0 6"); add(textFieldLabel, "cell 0 6");
//---- textField1 ---- //---- textField1 ----
textField1.setText("editable"); textField1.setText("Editable");
textField1.setComponentPopupMenu(popupMenu1); textField1.setComponentPopupMenu(popupMenu1);
add(textField1, "cell 1 6,growx"); add(textField1, "cell 1 6,growx");
//---- textField2 ---- //---- textField2 ----
textField2.setText("disabled"); textField2.setText("Disabled");
textField2.setEnabled(false); textField2.setEnabled(false);
add(textField2, "cell 2 6,growx"); add(textField2, "cell 2 6,growx");
//---- textField3 ---- //---- textField3 ----
textField3.setText("not editable"); textField3.setText("Not editable");
textField3.setEditable(false); textField3.setEditable(false);
add(textField3, "cell 3 6,growx"); add(textField3, "cell 3 6,growx");
//---- textField4 ---- //---- textField4 ----
textField4.setText("not editable disabled"); textField4.setText("Not editable disabled");
textField4.setEnabled(false); textField4.setEnabled(false);
textField4.setEditable(false); textField4.setEditable(false);
add(textField4, "cell 4 6,growx"); add(textField4, "cell 4 6,growx");
//---- textField6 ---- //---- textField6 ----
textField6.putClientProperty("JTextField.placeholderText", "placeholder"); textField6.putClientProperty("JTextField.placeholderText", "Placeholder");
add(textField6, "cell 5 6,growx"); add(textField6, "cell 5 6,growx");
//---- formattedTextFieldLabel ---- //---- formattedTextFieldLabel ----
@@ -381,28 +381,28 @@ class BasicComponentsPanel
add(formattedTextFieldLabel, "cell 0 7"); add(formattedTextFieldLabel, "cell 0 7");
//---- formattedTextField1 ---- //---- formattedTextField1 ----
formattedTextField1.setText("editable"); formattedTextField1.setText("Editable");
formattedTextField1.setComponentPopupMenu(popupMenu1); formattedTextField1.setComponentPopupMenu(popupMenu1);
add(formattedTextField1, "cell 1 7,growx"); add(formattedTextField1, "cell 1 7,growx");
//---- formattedTextField2 ---- //---- formattedTextField2 ----
formattedTextField2.setText("disabled"); formattedTextField2.setText("Disabled");
formattedTextField2.setEnabled(false); formattedTextField2.setEnabled(false);
add(formattedTextField2, "cell 2 7,growx"); add(formattedTextField2, "cell 2 7,growx");
//---- formattedTextField3 ---- //---- formattedTextField3 ----
formattedTextField3.setText("not editable"); formattedTextField3.setText("Not editable");
formattedTextField3.setEditable(false); formattedTextField3.setEditable(false);
add(formattedTextField3, "cell 3 7,growx"); add(formattedTextField3, "cell 3 7,growx");
//---- formattedTextField4 ---- //---- formattedTextField4 ----
formattedTextField4.setText("not editable disabled"); formattedTextField4.setText("Not editable disabled");
formattedTextField4.setEnabled(false); formattedTextField4.setEnabled(false);
formattedTextField4.setEditable(false); formattedTextField4.setEditable(false);
add(formattedTextField4, "cell 4 7,growx"); add(formattedTextField4, "cell 4 7,growx");
//---- formattedTextField5 ---- //---- formattedTextField5 ----
formattedTextField5.putClientProperty("JTextField.placeholderText", "placeholder"); formattedTextField5.putClientProperty("JTextField.placeholderText", "Placeholder");
add(formattedTextField5, "cell 5 7,growx"); add(formattedTextField5, "cell 5 7,growx");
//---- passwordFieldLabel ---- //---- passwordFieldLabel ----
@@ -410,27 +410,27 @@ class BasicComponentsPanel
add(passwordFieldLabel, "cell 0 8"); add(passwordFieldLabel, "cell 0 8");
//---- passwordField1 ---- //---- passwordField1 ----
passwordField1.setText("editable"); passwordField1.setText("Editable");
add(passwordField1, "cell 1 8,growx"); add(passwordField1, "cell 1 8,growx");
//---- passwordField2 ---- //---- passwordField2 ----
passwordField2.setText("disabled"); passwordField2.setText("Disabled");
passwordField2.setEnabled(false); passwordField2.setEnabled(false);
add(passwordField2, "cell 2 8,growx"); add(passwordField2, "cell 2 8,growx");
//---- passwordField3 ---- //---- passwordField3 ----
passwordField3.setText("not editable"); passwordField3.setText("Not editable");
passwordField3.setEditable(false); passwordField3.setEditable(false);
add(passwordField3, "cell 3 8,growx"); add(passwordField3, "cell 3 8,growx");
//---- passwordField4 ---- //---- passwordField4 ----
passwordField4.setText("not editable disabled"); passwordField4.setText("Not editable disabled");
passwordField4.setEnabled(false); passwordField4.setEnabled(false);
passwordField4.setEditable(false); passwordField4.setEditable(false);
add(passwordField4, "cell 4 8,growx"); add(passwordField4, "cell 4 8,growx");
//---- passwordField5 ---- //---- passwordField5 ----
passwordField5.putClientProperty("JTextField.placeholderText", "placeholder"); passwordField5.putClientProperty("JTextField.placeholderText", "Placeholder");
add(passwordField5, "cell 5 8,growx"); add(passwordField5, "cell 5 8,growx");
//---- textAreaLabel ---- //---- textAreaLabel ----
@@ -443,7 +443,7 @@ class BasicComponentsPanel
scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea1 ---- //---- textArea1 ----
textArea1.setText("editable"); textArea1.setText("Editable");
textArea1.setRows(2); textArea1.setRows(2);
scrollPane1.setViewportView(textArea1); scrollPane1.setViewportView(textArea1);
} }
@@ -455,7 +455,7 @@ class BasicComponentsPanel
scrollPane2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea2 ---- //---- textArea2 ----
textArea2.setText("disabled"); textArea2.setText("Disabled");
textArea2.setRows(2); textArea2.setRows(2);
textArea2.setEnabled(false); textArea2.setEnabled(false);
scrollPane2.setViewportView(textArea2); scrollPane2.setViewportView(textArea2);
@@ -468,7 +468,7 @@ class BasicComponentsPanel
scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea3 ---- //---- textArea3 ----
textArea3.setText("not editable"); textArea3.setText("Not editable");
textArea3.setRows(2); textArea3.setRows(2);
textArea3.setEditable(false); textArea3.setEditable(false);
scrollPane3.setViewportView(textArea3); scrollPane3.setViewportView(textArea3);
@@ -481,7 +481,7 @@ class BasicComponentsPanel
scrollPane4.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane4.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea4 ---- //---- textArea4 ----
textArea4.setText("not editable disabled"); textArea4.setText("Not editable disabled");
textArea4.setRows(2); textArea4.setRows(2);
textArea4.setEditable(false); textArea4.setEditable(false);
textArea4.setEnabled(false); textArea4.setEnabled(false);
@@ -491,7 +491,7 @@ class BasicComponentsPanel
//---- textArea5 ---- //---- textArea5 ----
textArea5.setRows(2); textArea5.setRows(2);
textArea5.setText("no scroll pane"); textArea5.setText("No scroll pane");
add(textArea5, "cell 5 9,growx"); add(textArea5, "cell 5 9,growx");
//---- editorPaneLabel ---- //---- editorPaneLabel ----
@@ -504,7 +504,7 @@ class BasicComponentsPanel
scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane1 ---- //---- editorPane1 ----
editorPane1.setText("editable"); editorPane1.setText("Editable");
scrollPane5.setViewportView(editorPane1); scrollPane5.setViewportView(editorPane1);
} }
add(scrollPane5, "cell 1 10,growx"); add(scrollPane5, "cell 1 10,growx");
@@ -515,7 +515,7 @@ class BasicComponentsPanel
scrollPane6.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane6.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane2 ---- //---- editorPane2 ----
editorPane2.setText("disabled"); editorPane2.setText("Disabled");
editorPane2.setEnabled(false); editorPane2.setEnabled(false);
scrollPane6.setViewportView(editorPane2); scrollPane6.setViewportView(editorPane2);
} }
@@ -527,7 +527,7 @@ class BasicComponentsPanel
scrollPane7.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane7.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane3 ---- //---- editorPane3 ----
editorPane3.setText("not editable"); editorPane3.setText("Not editable");
editorPane3.setEditable(false); editorPane3.setEditable(false);
scrollPane7.setViewportView(editorPane3); scrollPane7.setViewportView(editorPane3);
} }
@@ -539,7 +539,7 @@ class BasicComponentsPanel
scrollPane8.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane8.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane4 ---- //---- editorPane4 ----
editorPane4.setText("not editable disabled"); editorPane4.setText("Not editable disabled");
editorPane4.setEditable(false); editorPane4.setEditable(false);
editorPane4.setEnabled(false); editorPane4.setEnabled(false);
scrollPane8.setViewportView(editorPane4); scrollPane8.setViewportView(editorPane4);
@@ -547,7 +547,7 @@ class BasicComponentsPanel
add(scrollPane8, "cell 4 10,growx"); add(scrollPane8, "cell 4 10,growx");
//---- editorPane5 ---- //---- editorPane5 ----
editorPane5.setText("no scroll pane"); editorPane5.setText("No scroll pane");
add(editorPane5, "cell 5 10,growx"); add(editorPane5, "cell 5 10,growx");
//---- textPaneLabel ---- //---- textPaneLabel ----
@@ -560,7 +560,7 @@ class BasicComponentsPanel
scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane1 ---- //---- textPane1 ----
textPane1.setText("editable"); textPane1.setText("Editable");
scrollPane9.setViewportView(textPane1); scrollPane9.setViewportView(textPane1);
} }
add(scrollPane9, "cell 1 11,growx"); add(scrollPane9, "cell 1 11,growx");
@@ -571,7 +571,7 @@ class BasicComponentsPanel
scrollPane10.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane10.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane2 ---- //---- textPane2 ----
textPane2.setText("disabled"); textPane2.setText("Disabled");
textPane2.setEnabled(false); textPane2.setEnabled(false);
scrollPane10.setViewportView(textPane2); scrollPane10.setViewportView(textPane2);
} }
@@ -583,7 +583,7 @@ class BasicComponentsPanel
scrollPane11.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane11.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane3 ---- //---- textPane3 ----
textPane3.setText("not editable"); textPane3.setText("Not editable");
textPane3.setEditable(false); textPane3.setEditable(false);
scrollPane11.setViewportView(textPane3); scrollPane11.setViewportView(textPane3);
} }
@@ -595,7 +595,7 @@ class BasicComponentsPanel
scrollPane12.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane12.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane4 ---- //---- textPane4 ----
textPane4.setText("not editable disabled"); textPane4.setText("Not editable disabled");
textPane4.setEditable(false); textPane4.setEditable(false);
textPane4.setEnabled(false); textPane4.setEnabled(false);
scrollPane12.setViewportView(textPane4); scrollPane12.setViewportView(textPane4);
@@ -603,7 +603,7 @@ class BasicComponentsPanel
add(scrollPane12, "cell 4 11,growx"); add(scrollPane12, "cell 4 11,growx");
//---- textPane5 ---- //---- textPane5 ----
textPane5.setText("no scroll pane"); textPane5.setText("No scroll pane");
add(textPane5, "cell 5 11,growx"); add(textPane5, "cell 5 11,growx");
//---- label3 ---- //---- label3 ----
@@ -617,7 +617,7 @@ class BasicComponentsPanel
//---- comboBox7 ---- //---- comboBox7 ----
comboBox7.putClientProperty("JComponent.outline", "error"); comboBox7.putClientProperty("JComponent.outline", "error");
comboBox7.setModel(new DefaultComboBoxModel<>(new String[] { comboBox7.setModel(new DefaultComboBoxModel<>(new String[] {
"editable" "Editable"
})); }));
comboBox7.setEditable(true); comboBox7.setEditable(true);
add(comboBox7, "cell 2 12,growx"); add(comboBox7, "cell 2 12,growx");
@@ -637,7 +637,7 @@ class BasicComponentsPanel
//---- comboBox8 ---- //---- comboBox8 ----
comboBox8.putClientProperty("JComponent.outline", "warning"); comboBox8.putClientProperty("JComponent.outline", "warning");
comboBox8.setModel(new DefaultComboBoxModel<>(new String[] { comboBox8.setModel(new DefaultComboBoxModel<>(new String[] {
"not editable" "Not editable"
})); }));
add(comboBox8, "cell 2 13,growx"); add(comboBox8, "cell 2 13,growx");

View File

@@ -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: "14" encoding: "UTF-8"
new FormModel { new FormModel {
contentType: "form/swing" contentType: "form/swing"
@@ -20,14 +20,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "label1" name: "label1"
"text": "enabled" "text": "Enabled"
"displayedMnemonic": 69 "displayedMnemonic": 69
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 0" "value": "cell 1 0"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "label2" name: "label2"
"text": "disabled" "text": "Disabled"
"displayedMnemonic": 68 "displayedMnemonic": 68
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -41,14 +41,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button1" name: "button1"
"text": "enabled" "text": "Enabled"
"displayedMnemonicIndex": 0 "displayedMnemonicIndex": 0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 1" "value": "cell 1 1"
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button2" name: "button2"
"text": "disabled" "text": "Disabled"
"displayedMnemonicIndex": 0 "displayedMnemonicIndex": 0
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -56,14 +56,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button5" name: "button5"
"text": "square" "text": "Square"
"$client.JButton.buttonType": "square" "$client.JButton.buttonType": "square"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 1" "value": "cell 3 1"
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button6" name: "button6"
"text": "round" "text": "Round"
"$client.JButton.buttonType": "roundRect" "$client.JButton.buttonType": "roundRect"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 4 1" "value": "cell 4 1"
@@ -115,14 +115,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox1" name: "checkBox1"
"text": "enabled" "text": "Enabled"
"mnemonic": 65 "mnemonic": 65
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2" "value": "cell 1 2"
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox2" name: "checkBox2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
"mnemonic": 68 "mnemonic": 68
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -130,14 +130,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox3" name: "checkBox3"
"text": "selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 2" "value": "cell 3 2"
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox4" name: "checkBox4"
"text": "selected disabled" "text": "Selected disabled"
"selected": true "selected": true
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -151,14 +151,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton1" name: "radioButton1"
"text": "enabled" "text": "Enabled"
"mnemonic": 78 "mnemonic": 78
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 3" "value": "cell 1 3"
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton2" name: "radioButton2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
"mnemonic": 83 "mnemonic": 83
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -166,14 +166,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton3" name: "radioButton3"
"text": "selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 3" "value": "cell 3 3"
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton4" name: "radioButton4"
"text": "selected disabled" "text": "Selected disabled"
"selected": true "selected": true
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -191,8 +191,8 @@ new FormModel {
name: "comboBox1" name: "comboBox1"
"editable": true "editable": true
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "editable" selectedItem: "Editable"
addElement( "editable" ) addElement( "Editable" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -205,8 +205,8 @@ new FormModel {
"editable": true "editable": true
"enabled": false "enabled": false
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "disabled" selectedItem: "Disabled"
addElement( "disabled" ) addElement( "Disabled" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -217,8 +217,8 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox3" name: "comboBox3"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "not editable" selectedItem: "Not editable"
addElement( "not editable" ) addElement( "Not editable" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -229,8 +229,8 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox4" name: "comboBox4"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "not editable disabled" selectedItem: "Not editable disabled"
addElement( "not editable disabled" ) addElement( "Not editable disabled" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -242,8 +242,8 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox5" name: "comboBox5"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "wide popup if text is longer" selectedItem: "Wide popup if text is longer"
addElement( "wide popup if text is longer" ) addElement( "Wide popup if text is longer" )
addElement( "aa" ) addElement( "aa" )
addElement( "bbb" ) addElement( "bbb" )
addElement( "cccc" ) addElement( "cccc" )
@@ -273,7 +273,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox6" name: "comboBox6"
"editable": true "editable": true
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
auxiliary() { auxiliary() {
"JavaCodeGenerator.typeParameters": "String" "JavaCodeGenerator.typeParameters": "String"
} }
@@ -290,28 +290,28 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField1" name: "textField1"
"text": "editable" "text": "Editable"
"componentPopupMenu": &FormReference0 new FormReference( "popupMenu1" ) "componentPopupMenu": &FormReference0 new FormReference( "popupMenu1" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 6,growx" "value": "cell 1 6,growx"
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField2" name: "textField2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 6,growx" "value": "cell 2 6,growx"
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField3" name: "textField3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 6,growx" "value": "cell 3 6,growx"
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField4" name: "textField4"
"text": "not editable disabled" "text": "Not editable disabled"
"enabled": false "enabled": false
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -319,7 +319,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField6" name: "textField6"
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 6,growx" "value": "cell 5 6,growx"
} ) } )
@@ -333,28 +333,28 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField1" name: "formattedTextField1"
"text": "editable" "text": "Editable"
"componentPopupMenu": #FormReference0 "componentPopupMenu": #FormReference0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 7,growx" "value": "cell 1 7,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField2" name: "formattedTextField2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 7,growx" "value": "cell 2 7,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField3" name: "formattedTextField3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 7,growx" "value": "cell 3 7,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField4" name: "formattedTextField4"
"text": "not editable disabled" "text": "Not editable disabled"
"enabled": false "enabled": false
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -362,7 +362,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField5" name: "formattedTextField5"
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 7,growx" "value": "cell 5 7,growx"
} ) } )
@@ -374,27 +374,27 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField1" name: "passwordField1"
"text": "editable" "text": "Editable"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 8,growx" "value": "cell 1 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField2" name: "passwordField2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 8,growx" "value": "cell 2 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField3" name: "passwordField3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 8,growx" "value": "cell 3 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField4" name: "passwordField4"
"text": "not editable disabled" "text": "Not editable disabled"
"enabled": false "enabled": false
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -402,7 +402,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField5" name: "passwordField5"
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 8,growx" "value": "cell 5 8,growx"
} ) } )
@@ -418,7 +418,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea1" name: "textArea1"
"text": "editable" "text": "Editable"
"rows": 2 "rows": 2
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -430,7 +430,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea2" name: "textArea2"
"text": "disabled" "text": "Disabled"
"rows": 2 "rows": 2
"enabled": false "enabled": false
} ) } )
@@ -443,7 +443,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea3" name: "textArea3"
"text": "not editable" "text": "Not editable"
"rows": 2 "rows": 2
"editable": false "editable": false
} ) } )
@@ -456,7 +456,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea4" name: "textArea4"
"text": "not editable disabled" "text": "Not editable disabled"
"rows": 2 "rows": 2
"editable": false "editable": false
"enabled": false "enabled": false
@@ -467,7 +467,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea5" name: "textArea5"
"rows": 2 "rows": 2
"text": "no scroll pane" "text": "No scroll pane"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 9,growx" "value": "cell 5 9,growx"
} ) } )
@@ -483,7 +483,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane1" name: "editorPane1"
"text": "editable" "text": "Editable"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 10,growx" "value": "cell 1 10,growx"
@@ -494,7 +494,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane2" name: "editorPane2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -506,7 +506,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane3" name: "editorPane3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -518,7 +518,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane4" name: "editorPane4"
"text": "not editable disabled" "text": "Not editable disabled"
"editable": false "editable": false
"enabled": false "enabled": false
} ) } )
@@ -527,7 +527,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane5" name: "editorPane5"
"text": "no scroll pane" "text": "No scroll pane"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 10,growx" "value": "cell 5 10,growx"
} ) } )
@@ -543,7 +543,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane1" name: "textPane1"
"text": "editable" "text": "Editable"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 11,growx" "value": "cell 1 11,growx"
@@ -554,7 +554,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane2" name: "textPane2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -566,7 +566,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane3" name: "textPane3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -578,7 +578,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane4" name: "textPane4"
"text": "not editable disabled" "text": "Not editable disabled"
"editable": false "editable": false
"enabled": false "enabled": false
} ) } )
@@ -587,7 +587,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane5" name: "textPane5"
"text": "no scroll pane" "text": "No scroll pane"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 11,growx" "value": "cell 5 11,growx"
} ) } )
@@ -607,8 +607,8 @@ new FormModel {
name: "comboBox7" name: "comboBox7"
"$client.JComponent.outline": "error" "$client.JComponent.outline": "error"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "editable" selectedItem: "Editable"
addElement( "editable" ) addElement( "Editable" )
} }
"editable": true "editable": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -636,8 +636,8 @@ new FormModel {
name: "comboBox8" name: "comboBox8"
"$client.JComponent.outline": "warning" "$client.JComponent.outline": "warning"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "not editable" selectedItem: "Not editable"
addElement( "not editable" ) addElement( "Not editable" )
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 13,growx" "value": "cell 2 13,growx"

View File

@@ -91,12 +91,13 @@ public class ExtrasPanel
add(label1, "cell 0 1"); add(label1, "cell 0 1");
//---- triStateCheckBox1 ---- //---- triStateCheckBox1 ----
triStateCheckBox1.setText("three states"); triStateCheckBox1.setText("Three States");
triStateCheckBox1.addActionListener(e -> triStateCheckBox1Changed()); triStateCheckBox1.addActionListener(e -> triStateCheckBox1Changed());
add(triStateCheckBox1, "cell 1 1"); add(triStateCheckBox1, "cell 1 1");
//---- triStateLabel1 ---- //---- triStateLabel1 ----
triStateLabel1.setText("text"); triStateLabel1.setText("text");
triStateLabel1.setEnabled(false);
add(triStateLabel1, "cell 2 1"); add(triStateLabel1, "cell 2 1");
//---- label2 ---- //---- label2 ----

View File

@@ -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: "14" encoding: "UTF-8"
new FormModel { new FormModel {
contentType: "form/swing" contentType: "form/swing"
@@ -23,7 +23,7 @@ new FormModel {
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.TriStateCheckBox" ) { add( new FormComponent( "com.formdev.flatlaf.extras.TriStateCheckBox" ) {
name: "triStateCheckBox1" name: "triStateCheckBox1"
"text": "three states" "text": "Three States"
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "triStateCheckBox1Changed", false ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "triStateCheckBox1Changed", false ) )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 1" "value": "cell 1 1"
@@ -31,6 +31,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "triStateLabel1" name: "triStateLabel1"
"text": "text" "text": "text"
"enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 1" "value": "cell 2 1"
} ) } )

View File

@@ -347,12 +347,12 @@ public class FlatComponentsTest
add(labelLabel, "cell 0 0"); add(labelLabel, "cell 0 0");
//---- label1 ---- //---- label1 ----
label1.setText("enabled"); label1.setText("Enabled");
label1.setDisplayedMnemonic('E'); label1.setDisplayedMnemonic('E');
add(label1, "cell 1 0"); add(label1, "cell 1 0");
//---- label2 ---- //---- label2 ----
label2.setText("disabled"); label2.setText("Disabled");
label2.setDisplayedMnemonic('D'); label2.setDisplayedMnemonic('D');
label2.setEnabled(false); label2.setEnabled(false);
add(label2, "cell 2 0"); add(label2, "cell 2 0");
@@ -362,46 +362,46 @@ public class FlatComponentsTest
add(buttonLabel, "cell 0 1"); add(buttonLabel, "cell 0 1");
//---- button1 ---- //---- button1 ----
button1.setText("enabled"); button1.setText("Enabled");
button1.setDisplayedMnemonicIndex(0); button1.setDisplayedMnemonicIndex(0);
button1.setToolTipText("This button is enabled."); button1.setToolTipText("This button is enabled.");
add(button1, "cell 1 1"); add(button1, "cell 1 1");
//---- button17 ---- //---- button17 ----
button17.setText("sq"); button17.setText("Sq");
button17.putClientProperty("JButton.buttonType", "square"); button17.putClientProperty("JButton.buttonType", "square");
button17.putClientProperty("JComponent.minimumWidth", 0); button17.putClientProperty("JComponent.minimumWidth", 0);
add(button17, "cell 1 1"); add(button17, "cell 1 1");
//---- button22 ---- //---- button22 ----
button22.setText("rd"); button22.setText("Rd");
button22.putClientProperty("JButton.buttonType", "roundRect"); button22.putClientProperty("JButton.buttonType", "roundRect");
button22.putClientProperty("JComponent.minimumWidth", 0); button22.putClientProperty("JComponent.minimumWidth", 0);
add(button22, "cell 1 1"); add(button22, "cell 1 1");
//---- button2 ---- //---- button2 ----
button2.setText("disabled"); button2.setText("Disabled");
button2.setDisplayedMnemonicIndex(0); button2.setDisplayedMnemonicIndex(0);
button2.setEnabled(false); button2.setEnabled(false);
button2.setToolTipText("This button is disabled."); button2.setToolTipText("This button is disabled.");
add(button2, "cell 2 1"); add(button2, "cell 2 1");
//---- button18 ---- //---- button18 ----
button18.setText("sq"); button18.setText("Sq");
button18.putClientProperty("JButton.buttonType", "square"); button18.putClientProperty("JButton.buttonType", "square");
button18.setEnabled(false); button18.setEnabled(false);
button18.putClientProperty("JComponent.minimumWidth", 0); button18.putClientProperty("JComponent.minimumWidth", 0);
add(button18, "cell 2 1"); add(button18, "cell 2 1");
//---- button23 ---- //---- button23 ----
button23.setText("rd"); button23.setText("Rd");
button23.putClientProperty("JButton.buttonType", "roundRect"); button23.putClientProperty("JButton.buttonType", "roundRect");
button23.setEnabled(false); button23.setEnabled(false);
button23.putClientProperty("JComponent.minimumWidth", 0); button23.putClientProperty("JComponent.minimumWidth", 0);
add(button23, "cell 2 1"); add(button23, "cell 2 1");
//---- button5 ---- //---- button5 ----
button5.setText("default"); button5.setText("Default");
button5.setDisplayedMnemonicIndex(0); button5.setDisplayedMnemonicIndex(0);
button5.setToolTipText("Tool tip with\nmultiple\nlines."); button5.setToolTipText("Tool tip with\nmultiple\nlines.");
add(button5, "cell 3 1"); add(button5, "cell 3 1");
@@ -434,7 +434,7 @@ public class FlatComponentsTest
add(button16, "cell 5 1"); add(button16, "cell 5 1");
//---- button20 ---- //---- button20 ----
button20.setText("empty border"); button20.setText("Empty border");
button20.setBorder(BorderFactory.createEmptyBorder()); button20.setBorder(BorderFactory.createEmptyBorder());
add(button20, "cell 6 1"); add(button20, "cell 6 1");
@@ -443,43 +443,43 @@ public class FlatComponentsTest
add(toggleButtonLabel, "cell 0 2"); add(toggleButtonLabel, "cell 0 2");
//---- toggleButton1 ---- //---- toggleButton1 ----
toggleButton1.setText("enabled"); toggleButton1.setText("Enabled");
add(toggleButton1, "cell 1 2"); add(toggleButton1, "cell 1 2");
//---- toggleButton9 ---- //---- toggleButton9 ----
toggleButton9.setText("sq"); toggleButton9.setText("Sq");
toggleButton9.putClientProperty("JButton.buttonType", "square"); toggleButton9.putClientProperty("JButton.buttonType", "square");
add(toggleButton9, "cell 1 2"); add(toggleButton9, "cell 1 2");
//---- toggleButton19 ---- //---- toggleButton19 ----
toggleButton19.setText("rd"); toggleButton19.setText("Rd");
toggleButton19.putClientProperty("JButton.buttonType", "roundRect"); toggleButton19.putClientProperty("JButton.buttonType", "roundRect");
add(toggleButton19, "cell 1 2"); add(toggleButton19, "cell 1 2");
//---- toggleButton2 ---- //---- toggleButton2 ----
toggleButton2.setText("disabled"); toggleButton2.setText("Disabled");
toggleButton2.setEnabled(false); toggleButton2.setEnabled(false);
add(toggleButton2, "cell 2 2"); add(toggleButton2, "cell 2 2");
//---- toggleButton10 ---- //---- toggleButton10 ----
toggleButton10.setText("sq"); toggleButton10.setText("Sq");
toggleButton10.putClientProperty("JButton.buttonType", "square"); toggleButton10.putClientProperty("JButton.buttonType", "square");
toggleButton10.setEnabled(false); toggleButton10.setEnabled(false);
add(toggleButton10, "cell 2 2"); add(toggleButton10, "cell 2 2");
//---- toggleButton20 ---- //---- toggleButton20 ----
toggleButton20.setText("rd"); toggleButton20.setText("Rd");
toggleButton20.putClientProperty("JButton.buttonType", "roundRect"); toggleButton20.putClientProperty("JButton.buttonType", "roundRect");
toggleButton20.setEnabled(false); toggleButton20.setEnabled(false);
add(toggleButton20, "cell 2 2"); add(toggleButton20, "cell 2 2");
//---- toggleButton3 ---- //---- toggleButton3 ----
toggleButton3.setText("selected"); toggleButton3.setText("Selected");
toggleButton3.setSelected(true); toggleButton3.setSelected(true);
add(toggleButton3, "cell 3 2"); add(toggleButton3, "cell 3 2");
//---- toggleButton4 ---- //---- toggleButton4 ----
toggleButton4.setText("selected disabled"); toggleButton4.setText("Selected disabled");
toggleButton4.setEnabled(false); toggleButton4.setEnabled(false);
toggleButton4.setSelected(true); toggleButton4.setSelected(true);
add(toggleButton4, "cell 4 2"); add(toggleButton4, "cell 4 2");
@@ -505,7 +505,7 @@ public class FlatComponentsTest
add(toggleButton14, "cell 5 2"); add(toggleButton14, "cell 5 2");
//---- toggleButton18 ---- //---- toggleButton18 ----
toggleButton18.setText("empty border"); toggleButton18.setText("Empty border");
toggleButton18.setBorder(BorderFactory.createEmptyBorder()); toggleButton18.setBorder(BorderFactory.createEmptyBorder());
add(toggleButton18, "cell 6 2"); add(toggleButton18, "cell 6 2");
@@ -514,35 +514,35 @@ public class FlatComponentsTest
add(checkBoxLabel, "cell 0 3"); add(checkBoxLabel, "cell 0 3");
//---- checkBox1 ---- //---- checkBox1 ----
checkBox1.setText("enabled"); checkBox1.setText("Enabled");
checkBox1.setMnemonic('A'); checkBox1.setMnemonic('A');
add(checkBox1, "cell 1 3"); add(checkBox1, "cell 1 3");
//---- checkBox2 ---- //---- checkBox2 ----
checkBox2.setText("disabled"); checkBox2.setText("Disabled");
checkBox2.setEnabled(false); checkBox2.setEnabled(false);
checkBox2.setMnemonic('D'); checkBox2.setMnemonic('D');
add(checkBox2, "cell 2 3"); add(checkBox2, "cell 2 3");
//---- checkBox3 ---- //---- checkBox3 ----
checkBox3.setText("selected"); checkBox3.setText("Selected");
checkBox3.setSelected(true); checkBox3.setSelected(true);
add(checkBox3, "cell 3 3"); add(checkBox3, "cell 3 3");
//---- checkBox4 ---- //---- checkBox4 ----
checkBox4.setText("selected disabled"); checkBox4.setText("Selected disabled");
checkBox4.setSelected(true); checkBox4.setSelected(true);
checkBox4.setEnabled(false); checkBox4.setEnabled(false);
add(checkBox4, "cell 4 3"); add(checkBox4, "cell 4 3");
//---- toggleButton5 ---- //---- toggleButton5 ----
toggleButton5.setText("tab"); toggleButton5.setText("Tab");
toggleButton5.putClientProperty("JButton.buttonType", "tab"); toggleButton5.putClientProperty("JButton.buttonType", "tab");
toggleButton5.setSelected(true); toggleButton5.setSelected(true);
add(toggleButton5, "cell 5 3"); add(toggleButton5, "cell 5 3");
//---- toggleButton8 ---- //---- toggleButton8 ----
toggleButton8.setText("tab"); toggleButton8.setText("Tab");
toggleButton8.putClientProperty("JButton.buttonType", "tab"); toggleButton8.putClientProperty("JButton.buttonType", "tab");
toggleButton8.setEnabled(false); toggleButton8.setEnabled(false);
toggleButton8.setSelected(true); toggleButton8.setSelected(true);
@@ -553,23 +553,23 @@ public class FlatComponentsTest
add(radioButtonLabel, "cell 0 4"); add(radioButtonLabel, "cell 0 4");
//---- radioButton1 ---- //---- radioButton1 ----
radioButton1.setText("enabled"); radioButton1.setText("Enabled");
radioButton1.setMnemonic('N'); radioButton1.setMnemonic('N');
add(radioButton1, "cell 1 4"); add(radioButton1, "cell 1 4");
//---- radioButton2 ---- //---- radioButton2 ----
radioButton2.setText("disabled"); radioButton2.setText("Disabled");
radioButton2.setEnabled(false); radioButton2.setEnabled(false);
radioButton2.setMnemonic('S'); radioButton2.setMnemonic('S');
add(radioButton2, "cell 2 4"); add(radioButton2, "cell 2 4");
//---- radioButton3 ---- //---- radioButton3 ----
radioButton3.setText("selected"); radioButton3.setText("Selected");
radioButton3.setSelected(true); radioButton3.setSelected(true);
add(radioButton3, "cell 3 4"); add(radioButton3, "cell 3 4");
//---- radioButton4 ---- //---- radioButton4 ----
radioButton4.setText("selected disabled"); radioButton4.setText("Selected disabled");
radioButton4.setSelected(true); radioButton4.setSelected(true);
radioButton4.setEnabled(false); radioButton4.setEnabled(false);
add(radioButton4, "cell 4 4"); add(radioButton4, "cell 4 4");
@@ -581,7 +581,7 @@ public class FlatComponentsTest
//---- comboBox1 ---- //---- comboBox1 ----
comboBox1.setEditable(true); comboBox1.setEditable(true);
comboBox1.setModel(new DefaultComboBoxModel<>(new String[] { comboBox1.setModel(new DefaultComboBoxModel<>(new String[] {
"editable", "Editable",
"a", "a",
"bb", "bb",
"ccc", "ccc",
@@ -600,7 +600,7 @@ public class FlatComponentsTest
comboBox2.setEditable(true); comboBox2.setEditable(true);
comboBox2.setEnabled(false); comboBox2.setEnabled(false);
comboBox2.setModel(new DefaultComboBoxModel<>(new String[] { comboBox2.setModel(new DefaultComboBoxModel<>(new String[] {
"disabled", "Disabled",
"a", "a",
"bb", "bb",
"ccc" "ccc"
@@ -609,7 +609,7 @@ public class FlatComponentsTest
//---- comboBox3 ---- //---- comboBox3 ----
comboBox3.setModel(new DefaultComboBoxModel<>(new String[] { comboBox3.setModel(new DefaultComboBoxModel<>(new String[] {
"not editable", "Not editable",
"a", "a",
"bb", "bb",
"ccc", "ccc",
@@ -626,7 +626,7 @@ public class FlatComponentsTest
//---- comboBox4 ---- //---- comboBox4 ----
comboBox4.setModel(new DefaultComboBoxModel<>(new String[] { comboBox4.setModel(new DefaultComboBoxModel<>(new String[] {
"not editable disabled", "Not editable disabled",
"a", "a",
"bb", "bb",
"ccc" "ccc"
@@ -636,7 +636,7 @@ public class FlatComponentsTest
//---- comboBox5 ---- //---- comboBox5 ----
comboBox5.setModel(new DefaultComboBoxModel<>(new String[] { comboBox5.setModel(new DefaultComboBoxModel<>(new String[] {
"wide popup if text is longer", "Wide popup if text is longer",
"aa", "aa",
"bbb", "bbb",
"cccc" "cccc"
@@ -646,7 +646,7 @@ public class FlatComponentsTest
//---- comboBox6 ---- //---- comboBox6 ----
comboBox6.setBorder(BorderFactory.createEmptyBorder()); comboBox6.setBorder(BorderFactory.createEmptyBorder());
comboBox6.setModel(new DefaultComboBoxModel<>(new String[] { comboBox6.setModel(new DefaultComboBoxModel<>(new String[] {
"empty border", "Empty border",
"a", "a",
"b", "b",
"c" "c"
@@ -664,7 +664,7 @@ public class FlatComponentsTest
//---- comboBox7 ---- //---- comboBox7 ----
comboBox7.setEditable(true); comboBox7.setEditable(true);
comboBox7.putClientProperty("JTextField.placeholderText", "placeholder"); comboBox7.putClientProperty("JTextField.placeholderText", "Placeholder");
add(comboBox7, "cell 5 6,growx"); add(comboBox7, "cell 5 6,growx");
//---- spinner3 ---- //---- spinner3 ----
@@ -677,31 +677,31 @@ public class FlatComponentsTest
add(textFieldLabel, "cell 0 7"); add(textFieldLabel, "cell 0 7");
//---- textField1 ---- //---- textField1 ----
textField1.setText("editable"); textField1.setText("Editable");
add(textField1, "cell 1 7,growx"); add(textField1, "cell 1 7,growx");
//---- textField2 ---- //---- textField2 ----
textField2.setText("disabled"); textField2.setText("Disabled");
textField2.setEnabled(false); textField2.setEnabled(false);
add(textField2, "cell 2 7,growx"); add(textField2, "cell 2 7,growx");
//---- textField3 ---- //---- textField3 ----
textField3.setText("not editable"); textField3.setText("Not editable");
textField3.setEditable(false); textField3.setEditable(false);
add(textField3, "cell 3 7,growx"); add(textField3, "cell 3 7,growx");
//---- textField4 ---- //---- textField4 ----
textField4.setText("not editable disabled"); textField4.setText("Not editable disabled");
textField4.setEnabled(false); textField4.setEnabled(false);
textField4.setEditable(false); textField4.setEditable(false);
add(textField4, "cell 4 7,growx"); add(textField4, "cell 4 7,growx");
//---- textField6 ---- //---- textField6 ----
textField6.putClientProperty("JTextField.placeholderText", "placeholder"); textField6.putClientProperty("JTextField.placeholderText", "Placeholder");
add(textField6, "cell 5 7,growx"); add(textField6, "cell 5 7,growx");
//---- textField5 ---- //---- textField5 ----
textField5.setText("empty border"); textField5.setText("Empty border");
textField5.setBorder(BorderFactory.createEmptyBorder()); textField5.setBorder(BorderFactory.createEmptyBorder());
add(textField5, "cell 6 7"); add(textField5, "cell 6 7");
@@ -710,31 +710,31 @@ public class FlatComponentsTest
add(formattedTextFieldLabel, "cell 0 8"); add(formattedTextFieldLabel, "cell 0 8");
//---- formattedTextField1 ---- //---- formattedTextField1 ----
formattedTextField1.setText("editable"); formattedTextField1.setText("Editable");
add(formattedTextField1, "cell 1 8,growx"); add(formattedTextField1, "cell 1 8,growx");
//---- formattedTextField2 ---- //---- formattedTextField2 ----
formattedTextField2.setText("disabled"); formattedTextField2.setText("Disabled");
formattedTextField2.setEnabled(false); formattedTextField2.setEnabled(false);
add(formattedTextField2, "cell 2 8,growx"); add(formattedTextField2, "cell 2 8,growx");
//---- formattedTextField3 ---- //---- formattedTextField3 ----
formattedTextField3.setText("not editable"); formattedTextField3.setText("Not editable");
formattedTextField3.setEditable(false); formattedTextField3.setEditable(false);
add(formattedTextField3, "cell 3 8,growx"); add(formattedTextField3, "cell 3 8,growx");
//---- formattedTextField4 ---- //---- formattedTextField4 ----
formattedTextField4.setText("not editable disabled"); formattedTextField4.setText("Not editable disabled");
formattedTextField4.setEnabled(false); formattedTextField4.setEnabled(false);
formattedTextField4.setEditable(false); formattedTextField4.setEditable(false);
add(formattedTextField4, "cell 4 8,growx"); add(formattedTextField4, "cell 4 8,growx");
//---- formattedTextField5 ---- //---- formattedTextField5 ----
formattedTextField5.putClientProperty("JTextField.placeholderText", "placeholder"); formattedTextField5.putClientProperty("JTextField.placeholderText", "Placeholder");
add(formattedTextField5, "cell 5 8,growx"); add(formattedTextField5, "cell 5 8,growx");
//---- formattedTextField6 ---- //---- formattedTextField6 ----
formattedTextField6.setText("empty border"); formattedTextField6.setText("Empty border");
formattedTextField6.setBorder(BorderFactory.createEmptyBorder()); formattedTextField6.setBorder(BorderFactory.createEmptyBorder());
add(formattedTextField6, "cell 6 8"); add(formattedTextField6, "cell 6 8");
@@ -743,27 +743,27 @@ public class FlatComponentsTest
add(passwordFieldLabel, "cell 0 9"); add(passwordFieldLabel, "cell 0 9");
//---- passwordField1 ---- //---- passwordField1 ----
passwordField1.setText("editable"); passwordField1.setText("Editable");
add(passwordField1, "cell 1 9,growx"); add(passwordField1, "cell 1 9,growx");
//---- passwordField2 ---- //---- passwordField2 ----
passwordField2.setText("disabled"); passwordField2.setText("Disabled");
passwordField2.setEnabled(false); passwordField2.setEnabled(false);
add(passwordField2, "cell 2 9,growx"); add(passwordField2, "cell 2 9,growx");
//---- passwordField3 ---- //---- passwordField3 ----
passwordField3.setText("not editable"); passwordField3.setText("Not editable");
passwordField3.setEditable(false); passwordField3.setEditable(false);
add(passwordField3, "cell 3 9,growx"); add(passwordField3, "cell 3 9,growx");
//---- passwordField4 ---- //---- passwordField4 ----
passwordField4.setText("not editable disabled"); passwordField4.setText("Not editable disabled");
passwordField4.setEnabled(false); passwordField4.setEnabled(false);
passwordField4.setEditable(false); passwordField4.setEditable(false);
add(passwordField4, "cell 4 9,growx"); add(passwordField4, "cell 4 9,growx");
//---- passwordField5 ---- //---- passwordField5 ----
passwordField5.putClientProperty("JTextField.placeholderText", "placeholder"); passwordField5.putClientProperty("JTextField.placeholderText", "Placeholder");
add(passwordField5, "cell 5 9,growx"); add(passwordField5, "cell 5 9,growx");
//---- passwordField6 ---- //---- passwordField6 ----
@@ -781,7 +781,7 @@ public class FlatComponentsTest
scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea1 ---- //---- textArea1 ----
textArea1.setText("editable"); textArea1.setText("Editable");
textArea1.setRows(2); textArea1.setRows(2);
scrollPane1.setViewportView(textArea1); scrollPane1.setViewportView(textArea1);
} }
@@ -793,7 +793,7 @@ public class FlatComponentsTest
scrollPane2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea2 ---- //---- textArea2 ----
textArea2.setText("disabled"); textArea2.setText("Disabled");
textArea2.setRows(2); textArea2.setRows(2);
textArea2.setEnabled(false); textArea2.setEnabled(false);
scrollPane2.setViewportView(textArea2); scrollPane2.setViewportView(textArea2);
@@ -806,7 +806,7 @@ public class FlatComponentsTest
scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea3 ---- //---- textArea3 ----
textArea3.setText("not editable"); textArea3.setText("Not editable");
textArea3.setRows(2); textArea3.setRows(2);
textArea3.setEditable(false); textArea3.setEditable(false);
scrollPane3.setViewportView(textArea3); scrollPane3.setViewportView(textArea3);
@@ -819,7 +819,7 @@ public class FlatComponentsTest
scrollPane4.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane4.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea4 ---- //---- textArea4 ----
textArea4.setText("not editable disabled"); textArea4.setText("Not editable disabled");
textArea4.setRows(2); textArea4.setRows(2);
textArea4.setEditable(false); textArea4.setEditable(false);
textArea4.setEnabled(false); textArea4.setEnabled(false);
@@ -829,7 +829,7 @@ public class FlatComponentsTest
//---- textArea5 ---- //---- textArea5 ----
textArea5.setRows(2); textArea5.setRows(2);
textArea5.setText("no scroll pane"); textArea5.setText("No scroll pane");
add(textArea5, "cell 5 10,growx"); add(textArea5, "cell 5 10,growx");
//---- editorPaneLabel ---- //---- editorPaneLabel ----
@@ -842,7 +842,7 @@ public class FlatComponentsTest
scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane1 ---- //---- editorPane1 ----
editorPane1.setText("editable"); editorPane1.setText("Editable");
scrollPane5.setViewportView(editorPane1); scrollPane5.setViewportView(editorPane1);
} }
add(scrollPane5, "cell 1 11,growx"); add(scrollPane5, "cell 1 11,growx");
@@ -853,7 +853,7 @@ public class FlatComponentsTest
scrollPane6.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane6.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane2 ---- //---- editorPane2 ----
editorPane2.setText("disabled"); editorPane2.setText("Disabled");
editorPane2.setEnabled(false); editorPane2.setEnabled(false);
scrollPane6.setViewportView(editorPane2); scrollPane6.setViewportView(editorPane2);
} }
@@ -865,7 +865,7 @@ public class FlatComponentsTest
scrollPane7.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane7.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane3 ---- //---- editorPane3 ----
editorPane3.setText("not editable"); editorPane3.setText("Not editable");
editorPane3.setEditable(false); editorPane3.setEditable(false);
scrollPane7.setViewportView(editorPane3); scrollPane7.setViewportView(editorPane3);
} }
@@ -877,7 +877,7 @@ public class FlatComponentsTest
scrollPane8.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane8.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane4 ---- //---- editorPane4 ----
editorPane4.setText("not editable disabled"); editorPane4.setText("Not editable disabled");
editorPane4.setEditable(false); editorPane4.setEditable(false);
editorPane4.setEnabled(false); editorPane4.setEnabled(false);
scrollPane8.setViewportView(editorPane4); scrollPane8.setViewportView(editorPane4);
@@ -885,7 +885,7 @@ public class FlatComponentsTest
add(scrollPane8, "cell 4 11,growx"); add(scrollPane8, "cell 4 11,growx");
//---- editorPane5 ---- //---- editorPane5 ----
editorPane5.setText("no scroll pane"); editorPane5.setText("No scroll pane");
add(editorPane5, "cell 5 11,growx"); add(editorPane5, "cell 5 11,growx");
//---- textPaneLabel ---- //---- textPaneLabel ----
@@ -898,7 +898,7 @@ public class FlatComponentsTest
scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane1 ---- //---- textPane1 ----
textPane1.setText("editable"); textPane1.setText("Editable");
scrollPane9.setViewportView(textPane1); scrollPane9.setViewportView(textPane1);
} }
add(scrollPane9, "cell 1 12,growx"); add(scrollPane9, "cell 1 12,growx");
@@ -909,7 +909,7 @@ public class FlatComponentsTest
scrollPane10.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane10.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane2 ---- //---- textPane2 ----
textPane2.setText("disabled"); textPane2.setText("Disabled");
textPane2.setEnabled(false); textPane2.setEnabled(false);
scrollPane10.setViewportView(textPane2); scrollPane10.setViewportView(textPane2);
} }
@@ -921,7 +921,7 @@ public class FlatComponentsTest
scrollPane11.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane11.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane3 ---- //---- textPane3 ----
textPane3.setText("not editable"); textPane3.setText("Not editable");
textPane3.setEditable(false); textPane3.setEditable(false);
scrollPane11.setViewportView(textPane3); scrollPane11.setViewportView(textPane3);
} }
@@ -933,7 +933,7 @@ public class FlatComponentsTest
scrollPane12.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane12.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane4 ---- //---- textPane4 ----
textPane4.setText("not editable disabled"); textPane4.setText("Not editable disabled");
textPane4.setEditable(false); textPane4.setEditable(false);
textPane4.setEnabled(false); textPane4.setEnabled(false);
scrollPane12.setViewportView(textPane4); scrollPane12.setViewportView(textPane4);
@@ -941,7 +941,7 @@ public class FlatComponentsTest
add(scrollPane12, "cell 4 12,growx"); add(scrollPane12, "cell 4 12,growx");
//---- textPane5 ---- //---- textPane5 ----
textPane5.setText("no scroll pane"); textPane5.setText("No scroll pane");
add(textPane5, "cell 5 12,growx"); add(textPane5, "cell 5 12,growx");
//---- scrollPaneLabel ---- //---- scrollPaneLabel ----

View File

@@ -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: "14" encoding: "UTF-8"
new FormModel { new FormModel {
contentType: "form/swing" contentType: "form/swing"
@@ -20,14 +20,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "label1" name: "label1"
"text": "enabled" "text": "Enabled"
"displayedMnemonic": 69 "displayedMnemonic": 69
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 0" "value": "cell 1 0"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "label2" name: "label2"
"text": "disabled" "text": "Disabled"
"displayedMnemonic": 68 "displayedMnemonic": 68
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -41,7 +41,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button1" name: "button1"
"text": "enabled" "text": "Enabled"
"displayedMnemonicIndex": 0 "displayedMnemonicIndex": 0
"toolTipText": "This button is enabled." "toolTipText": "This button is enabled."
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -49,7 +49,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button17" name: "button17"
"text": "sq" "text": "Sq"
"$client.JButton.buttonType": "square" "$client.JButton.buttonType": "square"
"$client.JComponent.minimumWidth": 0 "$client.JComponent.minimumWidth": 0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -57,7 +57,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button22" name: "button22"
"text": "rd" "text": "Rd"
"$client.JButton.buttonType": "roundRect" "$client.JButton.buttonType": "roundRect"
"$client.JComponent.minimumWidth": 0 "$client.JComponent.minimumWidth": 0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -65,7 +65,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button2" name: "button2"
"text": "disabled" "text": "Disabled"
"displayedMnemonicIndex": 0 "displayedMnemonicIndex": 0
"enabled": false "enabled": false
"toolTipText": "This button is disabled." "toolTipText": "This button is disabled."
@@ -74,7 +74,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button18" name: "button18"
"text": "sq" "text": "Sq"
"$client.JButton.buttonType": "square" "$client.JButton.buttonType": "square"
"enabled": false "enabled": false
"$client.JComponent.minimumWidth": 0 "$client.JComponent.minimumWidth": 0
@@ -83,7 +83,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button23" name: "button23"
"text": "rd" "text": "Rd"
"$client.JButton.buttonType": "roundRect" "$client.JButton.buttonType": "roundRect"
"enabled": false "enabled": false
"$client.JComponent.minimumWidth": 0 "$client.JComponent.minimumWidth": 0
@@ -92,7 +92,7 @@ new FormModel {
} ) } )
add( new FormComponent( "com.formdev.flatlaf.testing.FlatComponentsTest$TestDefaultButton" ) { add( new FormComponent( "com.formdev.flatlaf.testing.FlatComponentsTest$TestDefaultButton" ) {
name: "button5" name: "button5"
"text": "default" "text": "Default"
"displayedMnemonicIndex": 0 "displayedMnemonicIndex": 0
"toolTipText": "Tool tip with\nmultiple\nlines." "toolTipText": "Tool tip with\nmultiple\nlines."
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -139,7 +139,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JButton" ) { add( new FormComponent( "javax.swing.JButton" ) {
name: "button20" name: "button20"
"text": "empty border" "text": "Empty border"
"border": &EmptyBorder0 new javax.swing.border.EmptyBorder( 0, 0, 0, 0 ) "border": &EmptyBorder0 new javax.swing.border.EmptyBorder( 0, 0, 0, 0 )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 6 1" "value": "cell 6 1"
@@ -152,34 +152,34 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton1" name: "toggleButton1"
"text": "enabled" "text": "Enabled"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2" "value": "cell 1 2"
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton9" name: "toggleButton9"
"text": "sq" "text": "Sq"
"$client.JButton.buttonType": "square" "$client.JButton.buttonType": "square"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2" "value": "cell 1 2"
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton19" name: "toggleButton19"
"text": "rd" "text": "Rd"
"$client.JButton.buttonType": "roundRect" "$client.JButton.buttonType": "roundRect"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2" "value": "cell 1 2"
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton2" name: "toggleButton2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 2" "value": "cell 2 2"
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton10" name: "toggleButton10"
"text": "sq" "text": "Sq"
"$client.JButton.buttonType": "square" "$client.JButton.buttonType": "square"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -187,7 +187,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton20" name: "toggleButton20"
"text": "rd" "text": "Rd"
"$client.JButton.buttonType": "roundRect" "$client.JButton.buttonType": "roundRect"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -195,14 +195,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton3" name: "toggleButton3"
"text": "selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 2" "value": "cell 3 2"
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton4" name: "toggleButton4"
"text": "selected disabled" "text": "Selected disabled"
"enabled": false "enabled": false
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -238,7 +238,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton18" name: "toggleButton18"
"text": "empty border" "text": "Empty border"
"border": #EmptyBorder0 "border": #EmptyBorder0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 6 2" "value": "cell 6 2"
@@ -251,14 +251,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox1" name: "checkBox1"
"text": "enabled" "text": "Enabled"
"mnemonic": 65 "mnemonic": 65
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 3" "value": "cell 1 3"
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox2" name: "checkBox2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
"mnemonic": 68 "mnemonic": 68
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -266,14 +266,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox3" name: "checkBox3"
"text": "selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 3" "value": "cell 3 3"
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "checkBox4" name: "checkBox4"
"text": "selected disabled" "text": "Selected disabled"
"selected": true "selected": true
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -281,7 +281,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton5" name: "toggleButton5"
"text": "tab" "text": "Tab"
"$client.JButton.buttonType": "tab" "$client.JButton.buttonType": "tab"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -289,7 +289,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton8" name: "toggleButton8"
"text": "tab" "text": "Tab"
"$client.JButton.buttonType": "tab" "$client.JButton.buttonType": "tab"
"enabled": false "enabled": false
"selected": true "selected": true
@@ -304,14 +304,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton1" name: "radioButton1"
"text": "enabled" "text": "Enabled"
"mnemonic": 78 "mnemonic": 78
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 4" "value": "cell 1 4"
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton2" name: "radioButton2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
"mnemonic": 83 "mnemonic": 83
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -319,14 +319,14 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton3" name: "radioButton3"
"text": "selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 4" "value": "cell 3 4"
} ) } )
add( new FormComponent( "javax.swing.JRadioButton" ) { add( new FormComponent( "javax.swing.JRadioButton" ) {
name: "radioButton4" name: "radioButton4"
"text": "selected disabled" "text": "Selected disabled"
"selected": true "selected": true
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -342,8 +342,8 @@ new FormModel {
name: "comboBox1" name: "comboBox1"
"editable": true "editable": true
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "editable" selectedItem: "Editable"
addElement( "editable" ) addElement( "Editable" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -364,8 +364,8 @@ new FormModel {
"editable": true "editable": true
"enabled": false "enabled": false
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "disabled" selectedItem: "Disabled"
addElement( "disabled" ) addElement( "Disabled" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -376,8 +376,8 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox3" name: "comboBox3"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "not editable" selectedItem: "Not editable"
addElement( "not editable" ) addElement( "Not editable" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -396,8 +396,8 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox4" name: "comboBox4"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "not editable disabled" selectedItem: "Not editable disabled"
addElement( "not editable disabled" ) addElement( "Not editable disabled" )
addElement( "a" ) addElement( "a" )
addElement( "bb" ) addElement( "bb" )
addElement( "ccc" ) addElement( "ccc" )
@@ -409,8 +409,8 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox5" name: "comboBox5"
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "wide popup if text is longer" selectedItem: "Wide popup if text is longer"
addElement( "wide popup if text is longer" ) addElement( "Wide popup if text is longer" )
addElement( "aa" ) addElement( "aa" )
addElement( "bbb" ) addElement( "bbb" )
addElement( "cccc" ) addElement( "cccc" )
@@ -422,8 +422,8 @@ new FormModel {
name: "comboBox6" name: "comboBox6"
"border": #EmptyBorder0 "border": #EmptyBorder0
"model": new javax.swing.DefaultComboBoxModel { "model": new javax.swing.DefaultComboBoxModel {
selectedItem: "empty border" selectedItem: "Empty border"
addElement( "empty border" ) addElement( "Empty border" )
addElement( "a" ) addElement( "a" )
addElement( "b" ) addElement( "b" )
addElement( "c" ) addElement( "c" )
@@ -451,7 +451,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox7" name: "comboBox7"
"editable": true "editable": true
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
auxiliary() { auxiliary() {
"JavaCodeGenerator.typeParameters": "String" "JavaCodeGenerator.typeParameters": "String"
} }
@@ -475,7 +475,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField1" name: "textField1"
"text": "editable" "text": "Editable"
auxiliary() { auxiliary() {
"JavaCodeGenerator.variableLocal": false "JavaCodeGenerator.variableLocal": false
} }
@@ -484,21 +484,21 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField2" name: "textField2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 7,growx" "value": "cell 2 7,growx"
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField3" name: "textField3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 7,growx" "value": "cell 3 7,growx"
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField4" name: "textField4"
"text": "not editable disabled" "text": "Not editable disabled"
"enabled": false "enabled": false
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -506,13 +506,13 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField6" name: "textField6"
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 7,growx" "value": "cell 5 7,growx"
} ) } )
add( new FormComponent( "javax.swing.JTextField" ) { add( new FormComponent( "javax.swing.JTextField" ) {
name: "textField5" name: "textField5"
"text": "empty border" "text": "Empty border"
"border": #EmptyBorder0 "border": #EmptyBorder0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 6 7" "value": "cell 6 7"
@@ -525,27 +525,27 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField1" name: "formattedTextField1"
"text": "editable" "text": "Editable"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 8,growx" "value": "cell 1 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField2" name: "formattedTextField2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 8,growx" "value": "cell 2 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField3" name: "formattedTextField3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 8,growx" "value": "cell 3 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField4" name: "formattedTextField4"
"text": "not editable disabled" "text": "Not editable disabled"
"enabled": false "enabled": false
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -553,13 +553,13 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField5" name: "formattedTextField5"
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 8,growx" "value": "cell 5 8,growx"
} ) } )
add( new FormComponent( "javax.swing.JFormattedTextField" ) { add( new FormComponent( "javax.swing.JFormattedTextField" ) {
name: "formattedTextField6" name: "formattedTextField6"
"text": "empty border" "text": "Empty border"
"border": #EmptyBorder0 "border": #EmptyBorder0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 6 8" "value": "cell 6 8"
@@ -572,27 +572,27 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField1" name: "passwordField1"
"text": "editable" "text": "Editable"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 9,growx" "value": "cell 1 9,growx"
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField2" name: "passwordField2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 2 9,growx" "value": "cell 2 9,growx"
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField3" name: "passwordField3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 3 9,growx" "value": "cell 3 9,growx"
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField4" name: "passwordField4"
"text": "not editable disabled" "text": "Not editable disabled"
"enabled": false "enabled": false
"editable": false "editable": false
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -600,7 +600,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JPasswordField" ) { add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "passwordField5" name: "passwordField5"
"$client.JTextField.placeholderText": "placeholder" "$client.JTextField.placeholderText": "Placeholder"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 9,growx" "value": "cell 5 9,growx"
} ) } )
@@ -623,7 +623,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea1" name: "textArea1"
"text": "editable" "text": "Editable"
"rows": 2 "rows": 2
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -635,7 +635,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea2" name: "textArea2"
"text": "disabled" "text": "Disabled"
"rows": 2 "rows": 2
"enabled": false "enabled": false
} ) } )
@@ -648,7 +648,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea3" name: "textArea3"
"text": "not editable" "text": "Not editable"
"rows": 2 "rows": 2
"editable": false "editable": false
} ) } )
@@ -661,7 +661,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea4" name: "textArea4"
"text": "not editable disabled" "text": "Not editable disabled"
"rows": 2 "rows": 2
"editable": false "editable": false
"enabled": false "enabled": false
@@ -672,7 +672,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea5" name: "textArea5"
"rows": 2 "rows": 2
"text": "no scroll pane" "text": "No scroll pane"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 10,growx" "value": "cell 5 10,growx"
} ) } )
@@ -688,7 +688,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane1" name: "editorPane1"
"text": "editable" "text": "Editable"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 11,growx" "value": "cell 1 11,growx"
@@ -699,7 +699,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane2" name: "editorPane2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -711,7 +711,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane3" name: "editorPane3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -723,7 +723,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane4" name: "editorPane4"
"text": "not editable disabled" "text": "Not editable disabled"
"editable": false "editable": false
"enabled": false "enabled": false
} ) } )
@@ -732,7 +732,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane5" name: "editorPane5"
"text": "no scroll pane" "text": "No scroll pane"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 11,growx" "value": "cell 5 11,growx"
} ) } )
@@ -748,7 +748,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane1" name: "textPane1"
"text": "editable" "text": "Editable"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 12,growx" "value": "cell 1 12,growx"
@@ -759,7 +759,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane2" name: "textPane2"
"text": "disabled" "text": "Disabled"
"enabled": false "enabled": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -771,7 +771,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane3" name: "textPane3"
"text": "not editable" "text": "Not editable"
"editable": false "editable": false
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
@@ -783,7 +783,7 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane4" name: "textPane4"
"text": "not editable disabled" "text": "Not editable disabled"
"editable": false "editable": false
"enabled": false "enabled": false
} ) } )
@@ -792,7 +792,7 @@ new FormModel {
} ) } )
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane5" name: "textPane5"
"text": "no scroll pane" "text": "No scroll pane"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 5 12,growx" "value": "cell 5 12,growx"
} ) } )