From 27eeb0a636c304e5d1993b64190146d2c8f2925c Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Mon, 22 Jun 2020 23:35:56 +0200 Subject: [PATCH] Demo: use uppercase leading characters --- .../flatlaf/demo/BasicComponentsPanel.java | 104 ++++++------ .../flatlaf/demo/BasicComponentsPanel.jfd | 120 +++++++------- .../flatlaf/demo/extras/ExtrasPanel.java | 3 +- .../flatlaf/demo/extras/ExtrasPanel.jfd | 5 +- .../flatlaf/testing/FlatComponentsTest.java | 136 ++++++++-------- .../flatlaf/testing/FlatComponentsTest.jfd | 150 +++++++++--------- 6 files changed, 260 insertions(+), 258 deletions(-) diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java index 5f837ee2..6b22fe78 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.java @@ -158,12 +158,12 @@ class BasicComponentsPanel add(labelLabel, "cell 0 0"); //---- label1 ---- - label1.setText("enabled"); + label1.setText("Enabled"); label1.setDisplayedMnemonic('E'); add(label1, "cell 1 0"); //---- label2 ---- - label2.setText("disabled"); + label2.setText("Disabled"); label2.setDisplayedMnemonic('D'); label2.setEnabled(false); add(label2, "cell 2 0"); @@ -173,23 +173,23 @@ class BasicComponentsPanel add(buttonLabel, "cell 0 1"); //---- button1 ---- - button1.setText("enabled"); + button1.setText("Enabled"); button1.setDisplayedMnemonicIndex(0); add(button1, "cell 1 1"); //---- button2 ---- - button2.setText("disabled"); + button2.setText("Disabled"); button2.setDisplayedMnemonicIndex(0); button2.setEnabled(false); add(button2, "cell 2 1"); //---- button5 ---- - button5.setText("square"); + button5.setText("Square"); button5.putClientProperty("JButton.buttonType", "square"); add(button5, "cell 3 1"); //---- button6 ---- - button6.setText("round"); + button6.setText("Round"); button6.putClientProperty("JButton.buttonType", "roundRect"); add(button6, "cell 4 1"); @@ -225,23 +225,23 @@ class BasicComponentsPanel add(checkBoxLabel, "cell 0 2"); //---- checkBox1 ---- - checkBox1.setText("enabled"); + checkBox1.setText("Enabled"); checkBox1.setMnemonic('A'); add(checkBox1, "cell 1 2"); //---- checkBox2 ---- - checkBox2.setText("disabled"); + checkBox2.setText("Disabled"); checkBox2.setEnabled(false); checkBox2.setMnemonic('D'); add(checkBox2, "cell 2 2"); //---- checkBox3 ---- - checkBox3.setText("selected"); + checkBox3.setText("Selected"); checkBox3.setSelected(true); add(checkBox3, "cell 3 2"); //---- checkBox4 ---- - checkBox4.setText("selected disabled"); + checkBox4.setText("Selected disabled"); checkBox4.setSelected(true); checkBox4.setEnabled(false); add(checkBox4, "cell 4 2"); @@ -251,23 +251,23 @@ class BasicComponentsPanel add(radioButtonLabel, "cell 0 3"); //---- radioButton1 ---- - radioButton1.setText("enabled"); + radioButton1.setText("Enabled"); radioButton1.setMnemonic('N'); add(radioButton1, "cell 1 3"); //---- radioButton2 ---- - radioButton2.setText("disabled"); + radioButton2.setText("Disabled"); radioButton2.setEnabled(false); radioButton2.setMnemonic('S'); add(radioButton2, "cell 2 3"); //---- radioButton3 ---- - radioButton3.setText("selected"); + radioButton3.setText("Selected"); radioButton3.setSelected(true); add(radioButton3, "cell 3 3"); //---- radioButton4 ---- - radioButton4.setText("selected disabled"); + radioButton4.setText("Selected disabled"); radioButton4.setSelected(true); radioButton4.setEnabled(false); add(radioButton4, "cell 4 3"); @@ -281,7 +281,7 @@ class BasicComponentsPanel //---- comboBox1 ---- comboBox1.setEditable(true); comboBox1.setModel(new DefaultComboBoxModel<>(new String[] { - "editable", + "Editable", "a", "bb", "ccc" @@ -292,7 +292,7 @@ class BasicComponentsPanel comboBox2.setEditable(true); comboBox2.setEnabled(false); comboBox2.setModel(new DefaultComboBoxModel<>(new String[] { - "disabled", + "Disabled", "a", "bb", "ccc" @@ -301,7 +301,7 @@ class BasicComponentsPanel //---- comboBox3 ---- comboBox3.setModel(new DefaultComboBoxModel<>(new String[] { - "not editable", + "Not editable", "a", "bb", "ccc" @@ -310,7 +310,7 @@ class BasicComponentsPanel //---- comboBox4 ---- comboBox4.setModel(new DefaultComboBoxModel<>(new String[] { - "not editable disabled", + "Not editable disabled", "a", "bb", "ccc" @@ -320,7 +320,7 @@ class BasicComponentsPanel //---- comboBox5 ---- comboBox5.setModel(new DefaultComboBoxModel<>(new String[] { - "wide popup if text is longer", + "Wide popup if text is longer", "aa", "bbb", "cccc" @@ -340,7 +340,7 @@ class BasicComponentsPanel //---- comboBox6 ---- comboBox6.setEditable(true); - comboBox6.putClientProperty("JTextField.placeholderText", "placeholder"); + comboBox6.putClientProperty("JTextField.placeholderText", "Placeholder"); add(comboBox6, "cell 5 5,growx"); //---- textFieldLabel ---- @@ -350,28 +350,28 @@ class BasicComponentsPanel add(textFieldLabel, "cell 0 6"); //---- textField1 ---- - textField1.setText("editable"); + textField1.setText("Editable"); textField1.setComponentPopupMenu(popupMenu1); add(textField1, "cell 1 6,growx"); //---- textField2 ---- - textField2.setText("disabled"); + textField2.setText("Disabled"); textField2.setEnabled(false); add(textField2, "cell 2 6,growx"); //---- textField3 ---- - textField3.setText("not editable"); + textField3.setText("Not editable"); textField3.setEditable(false); add(textField3, "cell 3 6,growx"); //---- textField4 ---- - textField4.setText("not editable disabled"); + textField4.setText("Not editable disabled"); textField4.setEnabled(false); textField4.setEditable(false); add(textField4, "cell 4 6,growx"); //---- textField6 ---- - textField6.putClientProperty("JTextField.placeholderText", "placeholder"); + textField6.putClientProperty("JTextField.placeholderText", "Placeholder"); add(textField6, "cell 5 6,growx"); //---- formattedTextFieldLabel ---- @@ -381,28 +381,28 @@ class BasicComponentsPanel add(formattedTextFieldLabel, "cell 0 7"); //---- formattedTextField1 ---- - formattedTextField1.setText("editable"); + formattedTextField1.setText("Editable"); formattedTextField1.setComponentPopupMenu(popupMenu1); add(formattedTextField1, "cell 1 7,growx"); //---- formattedTextField2 ---- - formattedTextField2.setText("disabled"); + formattedTextField2.setText("Disabled"); formattedTextField2.setEnabled(false); add(formattedTextField2, "cell 2 7,growx"); //---- formattedTextField3 ---- - formattedTextField3.setText("not editable"); + formattedTextField3.setText("Not editable"); formattedTextField3.setEditable(false); add(formattedTextField3, "cell 3 7,growx"); //---- formattedTextField4 ---- - formattedTextField4.setText("not editable disabled"); + formattedTextField4.setText("Not editable disabled"); formattedTextField4.setEnabled(false); formattedTextField4.setEditable(false); add(formattedTextField4, "cell 4 7,growx"); //---- formattedTextField5 ---- - formattedTextField5.putClientProperty("JTextField.placeholderText", "placeholder"); + formattedTextField5.putClientProperty("JTextField.placeholderText", "Placeholder"); add(formattedTextField5, "cell 5 7,growx"); //---- passwordFieldLabel ---- @@ -410,27 +410,27 @@ class BasicComponentsPanel add(passwordFieldLabel, "cell 0 8"); //---- passwordField1 ---- - passwordField1.setText("editable"); + passwordField1.setText("Editable"); add(passwordField1, "cell 1 8,growx"); //---- passwordField2 ---- - passwordField2.setText("disabled"); + passwordField2.setText("Disabled"); passwordField2.setEnabled(false); add(passwordField2, "cell 2 8,growx"); //---- passwordField3 ---- - passwordField3.setText("not editable"); + passwordField3.setText("Not editable"); passwordField3.setEditable(false); add(passwordField3, "cell 3 8,growx"); //---- passwordField4 ---- - passwordField4.setText("not editable disabled"); + passwordField4.setText("Not editable disabled"); passwordField4.setEnabled(false); passwordField4.setEditable(false); add(passwordField4, "cell 4 8,growx"); //---- passwordField5 ---- - passwordField5.putClientProperty("JTextField.placeholderText", "placeholder"); + passwordField5.putClientProperty("JTextField.placeholderText", "Placeholder"); add(passwordField5, "cell 5 8,growx"); //---- textAreaLabel ---- @@ -443,7 +443,7 @@ class BasicComponentsPanel scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea1 ---- - textArea1.setText("editable"); + textArea1.setText("Editable"); textArea1.setRows(2); scrollPane1.setViewportView(textArea1); } @@ -455,7 +455,7 @@ class BasicComponentsPanel scrollPane2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea2 ---- - textArea2.setText("disabled"); + textArea2.setText("Disabled"); textArea2.setRows(2); textArea2.setEnabled(false); scrollPane2.setViewportView(textArea2); @@ -468,7 +468,7 @@ class BasicComponentsPanel scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea3 ---- - textArea3.setText("not editable"); + textArea3.setText("Not editable"); textArea3.setRows(2); textArea3.setEditable(false); scrollPane3.setViewportView(textArea3); @@ -481,7 +481,7 @@ class BasicComponentsPanel scrollPane4.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea4 ---- - textArea4.setText("not editable disabled"); + textArea4.setText("Not editable disabled"); textArea4.setRows(2); textArea4.setEditable(false); textArea4.setEnabled(false); @@ -491,7 +491,7 @@ class BasicComponentsPanel //---- textArea5 ---- textArea5.setRows(2); - textArea5.setText("no scroll pane"); + textArea5.setText("No scroll pane"); add(textArea5, "cell 5 9,growx"); //---- editorPaneLabel ---- @@ -504,7 +504,7 @@ class BasicComponentsPanel scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane1 ---- - editorPane1.setText("editable"); + editorPane1.setText("Editable"); scrollPane5.setViewportView(editorPane1); } add(scrollPane5, "cell 1 10,growx"); @@ -515,7 +515,7 @@ class BasicComponentsPanel scrollPane6.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane2 ---- - editorPane2.setText("disabled"); + editorPane2.setText("Disabled"); editorPane2.setEnabled(false); scrollPane6.setViewportView(editorPane2); } @@ -527,7 +527,7 @@ class BasicComponentsPanel scrollPane7.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane3 ---- - editorPane3.setText("not editable"); + editorPane3.setText("Not editable"); editorPane3.setEditable(false); scrollPane7.setViewportView(editorPane3); } @@ -539,7 +539,7 @@ class BasicComponentsPanel scrollPane8.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane4 ---- - editorPane4.setText("not editable disabled"); + editorPane4.setText("Not editable disabled"); editorPane4.setEditable(false); editorPane4.setEnabled(false); scrollPane8.setViewportView(editorPane4); @@ -547,7 +547,7 @@ class BasicComponentsPanel add(scrollPane8, "cell 4 10,growx"); //---- editorPane5 ---- - editorPane5.setText("no scroll pane"); + editorPane5.setText("No scroll pane"); add(editorPane5, "cell 5 10,growx"); //---- textPaneLabel ---- @@ -560,7 +560,7 @@ class BasicComponentsPanel scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane1 ---- - textPane1.setText("editable"); + textPane1.setText("Editable"); scrollPane9.setViewportView(textPane1); } add(scrollPane9, "cell 1 11,growx"); @@ -571,7 +571,7 @@ class BasicComponentsPanel scrollPane10.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane2 ---- - textPane2.setText("disabled"); + textPane2.setText("Disabled"); textPane2.setEnabled(false); scrollPane10.setViewportView(textPane2); } @@ -583,7 +583,7 @@ class BasicComponentsPanel scrollPane11.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane3 ---- - textPane3.setText("not editable"); + textPane3.setText("Not editable"); textPane3.setEditable(false); scrollPane11.setViewportView(textPane3); } @@ -595,7 +595,7 @@ class BasicComponentsPanel scrollPane12.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane4 ---- - textPane4.setText("not editable disabled"); + textPane4.setText("Not editable disabled"); textPane4.setEditable(false); textPane4.setEnabled(false); scrollPane12.setViewportView(textPane4); @@ -603,7 +603,7 @@ class BasicComponentsPanel add(scrollPane12, "cell 4 11,growx"); //---- textPane5 ---- - textPane5.setText("no scroll pane"); + textPane5.setText("No scroll pane"); add(textPane5, "cell 5 11,growx"); //---- label3 ---- @@ -617,7 +617,7 @@ class BasicComponentsPanel //---- comboBox7 ---- comboBox7.putClientProperty("JComponent.outline", "error"); comboBox7.setModel(new DefaultComboBoxModel<>(new String[] { - "editable" + "Editable" })); comboBox7.setEditable(true); add(comboBox7, "cell 2 12,growx"); @@ -637,7 +637,7 @@ class BasicComponentsPanel //---- comboBox8 ---- comboBox8.putClientProperty("JComponent.outline", "warning"); comboBox8.setModel(new DefaultComboBoxModel<>(new String[] { - "not editable" + "Not editable" })); add(comboBox8, "cell 2 13,growx"); diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd index 00239b64..69f10cf8 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/BasicComponentsPanel.jfd @@ -1,4 +1,4 @@ -JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8" +JFDML JFormDesigner: "7.0.2.0.298" Java: "14" encoding: "UTF-8" new FormModel { contentType: "form/swing" @@ -20,14 +20,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "label1" - "text": "enabled" + "text": "Enabled" "displayedMnemonic": 69 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 0" } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "label2" - "text": "disabled" + "text": "Disabled" "displayedMnemonic": 68 "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -41,14 +41,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button1" - "text": "enabled" + "text": "Enabled" "displayedMnemonicIndex": 0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 1" } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button2" - "text": "disabled" + "text": "Disabled" "displayedMnemonicIndex": 0 "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -56,14 +56,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button5" - "text": "square" + "text": "Square" "$client.JButton.buttonType": "square" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 1" } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button6" - "text": "round" + "text": "Round" "$client.JButton.buttonType": "roundRect" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 4 1" @@ -115,14 +115,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox1" - "text": "enabled" + "text": "Enabled" "mnemonic": 65 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 2" } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox2" - "text": "disabled" + "text": "Disabled" "enabled": false "mnemonic": 68 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -130,14 +130,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox3" - "text": "selected" + "text": "Selected" "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 2" } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox4" - "text": "selected disabled" + "text": "Selected disabled" "selected": true "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -151,14 +151,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton1" - "text": "enabled" + "text": "Enabled" "mnemonic": 78 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 3" } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton2" - "text": "disabled" + "text": "Disabled" "enabled": false "mnemonic": 83 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -166,14 +166,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton3" - "text": "selected" + "text": "Selected" "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 3" } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton4" - "text": "selected disabled" + "text": "Selected disabled" "selected": true "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -191,8 +191,8 @@ new FormModel { name: "comboBox1" "editable": true "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "editable" - addElement( "editable" ) + selectedItem: "Editable" + addElement( "Editable" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -205,8 +205,8 @@ new FormModel { "editable": true "enabled": false "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "disabled" - addElement( "disabled" ) + selectedItem: "Disabled" + addElement( "Disabled" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -217,8 +217,8 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox3" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "not editable" - addElement( "not editable" ) + selectedItem: "Not editable" + addElement( "Not editable" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -229,8 +229,8 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox4" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "not editable disabled" - addElement( "not editable disabled" ) + selectedItem: "Not editable disabled" + addElement( "Not editable disabled" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -242,8 +242,8 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox5" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "wide popup if text is longer" - addElement( "wide popup if text is longer" ) + selectedItem: "Wide popup if text is longer" + addElement( "Wide popup if text is longer" ) addElement( "aa" ) addElement( "bbb" ) addElement( "cccc" ) @@ -273,7 +273,7 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox6" "editable": true - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" auxiliary() { "JavaCodeGenerator.typeParameters": "String" } @@ -290,28 +290,28 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField1" - "text": "editable" + "text": "Editable" "componentPopupMenu": &FormReference0 new FormReference( "popupMenu1" ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 6,growx" } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 6,growx" } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField3" - "text": "not editable" + "text": "Not editable" "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 6,growx" } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField4" - "text": "not editable disabled" + "text": "Not editable disabled" "enabled": false "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -319,7 +319,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField6" - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 6,growx" } ) @@ -333,28 +333,28 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField1" - "text": "editable" + "text": "Editable" "componentPopupMenu": #FormReference0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 7,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 7,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField3" - "text": "not editable" + "text": "Not editable" "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 7,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField4" - "text": "not editable disabled" + "text": "Not editable disabled" "enabled": false "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -362,7 +362,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField5" - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 7,growx" } ) @@ -374,27 +374,27 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField1" - "text": "editable" + "text": "Editable" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 8,growx" } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 8,growx" } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField3" - "text": "not editable" + "text": "Not editable" "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 8,growx" } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField4" - "text": "not editable disabled" + "text": "Not editable disabled" "enabled": false "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -402,7 +402,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField5" - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 8,growx" } ) @@ -418,7 +418,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea1" - "text": "editable" + "text": "Editable" "rows": 2 } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -430,7 +430,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea2" - "text": "disabled" + "text": "Disabled" "rows": 2 "enabled": false } ) @@ -443,7 +443,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea3" - "text": "not editable" + "text": "Not editable" "rows": 2 "editable": false } ) @@ -456,7 +456,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea4" - "text": "not editable disabled" + "text": "Not editable disabled" "rows": 2 "editable": false "enabled": false @@ -467,7 +467,7 @@ new FormModel { add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea5" "rows": 2 - "text": "no scroll pane" + "text": "No scroll pane" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 9,growx" } ) @@ -483,7 +483,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane1" - "text": "editable" + "text": "Editable" } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 10,growx" @@ -494,7 +494,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane2" - "text": "disabled" + "text": "Disabled" "enabled": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -506,7 +506,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane3" - "text": "not editable" + "text": "Not editable" "editable": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -518,7 +518,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane4" - "text": "not editable disabled" + "text": "Not editable disabled" "editable": false "enabled": false } ) @@ -527,7 +527,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane5" - "text": "no scroll pane" + "text": "No scroll pane" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 10,growx" } ) @@ -543,7 +543,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane1" - "text": "editable" + "text": "Editable" } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 11,growx" @@ -554,7 +554,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane2" - "text": "disabled" + "text": "Disabled" "enabled": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -566,7 +566,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane3" - "text": "not editable" + "text": "Not editable" "editable": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -578,7 +578,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane4" - "text": "not editable disabled" + "text": "Not editable disabled" "editable": false "enabled": false } ) @@ -587,7 +587,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane5" - "text": "no scroll pane" + "text": "No scroll pane" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 11,growx" } ) @@ -607,8 +607,8 @@ new FormModel { name: "comboBox7" "$client.JComponent.outline": "error" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "editable" - addElement( "editable" ) + selectedItem: "Editable" + addElement( "Editable" ) } "editable": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -636,8 +636,8 @@ new FormModel { name: "comboBox8" "$client.JComponent.outline": "warning" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "not editable" - addElement( "not editable" ) + selectedItem: "Not editable" + addElement( "Not editable" ) } }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 13,growx" diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.java b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.java index b7f7426b..f8281660 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.java +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.java @@ -91,12 +91,13 @@ public class ExtrasPanel add(label1, "cell 0 1"); //---- triStateCheckBox1 ---- - triStateCheckBox1.setText("three states"); + triStateCheckBox1.setText("Three States"); triStateCheckBox1.addActionListener(e -> triStateCheckBox1Changed()); add(triStateCheckBox1, "cell 1 1"); //---- triStateLabel1 ---- triStateLabel1.setText("text"); + triStateLabel1.setEnabled(false); add(triStateLabel1, "cell 2 1"); //---- label2 ---- diff --git a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.jfd b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.jfd index 2f8faff7..1a649f89 100644 --- a/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.jfd +++ b/flatlaf-demo/src/main/java/com/formdev/flatlaf/demo/extras/ExtrasPanel.jfd @@ -1,4 +1,4 @@ -JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8" +JFDML JFormDesigner: "7.0.2.0.298" Java: "14" encoding: "UTF-8" new FormModel { contentType: "form/swing" @@ -23,7 +23,7 @@ new FormModel { } ) add( new FormComponent( "com.formdev.flatlaf.extras.TriStateCheckBox" ) { name: "triStateCheckBox1" - "text": "three states" + "text": "Three States" addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "triStateCheckBox1Changed", false ) ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 1" @@ -31,6 +31,7 @@ new FormModel { add( new FormComponent( "javax.swing.JLabel" ) { name: "triStateLabel1" "text": "text" + "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 1" } ) diff --git a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.java b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.java index 25039fdc..d6f592dd 100644 --- a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.java +++ b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.java @@ -347,12 +347,12 @@ public class FlatComponentsTest add(labelLabel, "cell 0 0"); //---- label1 ---- - label1.setText("enabled"); + label1.setText("Enabled"); label1.setDisplayedMnemonic('E'); add(label1, "cell 1 0"); //---- label2 ---- - label2.setText("disabled"); + label2.setText("Disabled"); label2.setDisplayedMnemonic('D'); label2.setEnabled(false); add(label2, "cell 2 0"); @@ -362,46 +362,46 @@ public class FlatComponentsTest add(buttonLabel, "cell 0 1"); //---- button1 ---- - button1.setText("enabled"); + button1.setText("Enabled"); button1.setDisplayedMnemonicIndex(0); button1.setToolTipText("This button is enabled."); add(button1, "cell 1 1"); //---- button17 ---- - button17.setText("sq"); + button17.setText("Sq"); button17.putClientProperty("JButton.buttonType", "square"); button17.putClientProperty("JComponent.minimumWidth", 0); add(button17, "cell 1 1"); //---- button22 ---- - button22.setText("rd"); + button22.setText("Rd"); button22.putClientProperty("JButton.buttonType", "roundRect"); button22.putClientProperty("JComponent.minimumWidth", 0); add(button22, "cell 1 1"); //---- button2 ---- - button2.setText("disabled"); + button2.setText("Disabled"); button2.setDisplayedMnemonicIndex(0); button2.setEnabled(false); button2.setToolTipText("This button is disabled."); add(button2, "cell 2 1"); //---- button18 ---- - button18.setText("sq"); + button18.setText("Sq"); button18.putClientProperty("JButton.buttonType", "square"); button18.setEnabled(false); button18.putClientProperty("JComponent.minimumWidth", 0); add(button18, "cell 2 1"); //---- button23 ---- - button23.setText("rd"); + button23.setText("Rd"); button23.putClientProperty("JButton.buttonType", "roundRect"); button23.setEnabled(false); button23.putClientProperty("JComponent.minimumWidth", 0); add(button23, "cell 2 1"); //---- button5 ---- - button5.setText("default"); + button5.setText("Default"); button5.setDisplayedMnemonicIndex(0); button5.setToolTipText("Tool tip with\nmultiple\nlines."); add(button5, "cell 3 1"); @@ -434,7 +434,7 @@ public class FlatComponentsTest add(button16, "cell 5 1"); //---- button20 ---- - button20.setText("empty border"); + button20.setText("Empty border"); button20.setBorder(BorderFactory.createEmptyBorder()); add(button20, "cell 6 1"); @@ -443,43 +443,43 @@ public class FlatComponentsTest add(toggleButtonLabel, "cell 0 2"); //---- toggleButton1 ---- - toggleButton1.setText("enabled"); + toggleButton1.setText("Enabled"); add(toggleButton1, "cell 1 2"); //---- toggleButton9 ---- - toggleButton9.setText("sq"); + toggleButton9.setText("Sq"); toggleButton9.putClientProperty("JButton.buttonType", "square"); add(toggleButton9, "cell 1 2"); //---- toggleButton19 ---- - toggleButton19.setText("rd"); + toggleButton19.setText("Rd"); toggleButton19.putClientProperty("JButton.buttonType", "roundRect"); add(toggleButton19, "cell 1 2"); //---- toggleButton2 ---- - toggleButton2.setText("disabled"); + toggleButton2.setText("Disabled"); toggleButton2.setEnabled(false); add(toggleButton2, "cell 2 2"); //---- toggleButton10 ---- - toggleButton10.setText("sq"); + toggleButton10.setText("Sq"); toggleButton10.putClientProperty("JButton.buttonType", "square"); toggleButton10.setEnabled(false); add(toggleButton10, "cell 2 2"); //---- toggleButton20 ---- - toggleButton20.setText("rd"); + toggleButton20.setText("Rd"); toggleButton20.putClientProperty("JButton.buttonType", "roundRect"); toggleButton20.setEnabled(false); add(toggleButton20, "cell 2 2"); //---- toggleButton3 ---- - toggleButton3.setText("selected"); + toggleButton3.setText("Selected"); toggleButton3.setSelected(true); add(toggleButton3, "cell 3 2"); //---- toggleButton4 ---- - toggleButton4.setText("selected disabled"); + toggleButton4.setText("Selected disabled"); toggleButton4.setEnabled(false); toggleButton4.setSelected(true); add(toggleButton4, "cell 4 2"); @@ -505,7 +505,7 @@ public class FlatComponentsTest add(toggleButton14, "cell 5 2"); //---- toggleButton18 ---- - toggleButton18.setText("empty border"); + toggleButton18.setText("Empty border"); toggleButton18.setBorder(BorderFactory.createEmptyBorder()); add(toggleButton18, "cell 6 2"); @@ -514,35 +514,35 @@ public class FlatComponentsTest add(checkBoxLabel, "cell 0 3"); //---- checkBox1 ---- - checkBox1.setText("enabled"); + checkBox1.setText("Enabled"); checkBox1.setMnemonic('A'); add(checkBox1, "cell 1 3"); //---- checkBox2 ---- - checkBox2.setText("disabled"); + checkBox2.setText("Disabled"); checkBox2.setEnabled(false); checkBox2.setMnemonic('D'); add(checkBox2, "cell 2 3"); //---- checkBox3 ---- - checkBox3.setText("selected"); + checkBox3.setText("Selected"); checkBox3.setSelected(true); add(checkBox3, "cell 3 3"); //---- checkBox4 ---- - checkBox4.setText("selected disabled"); + checkBox4.setText("Selected disabled"); checkBox4.setSelected(true); checkBox4.setEnabled(false); add(checkBox4, "cell 4 3"); //---- toggleButton5 ---- - toggleButton5.setText("tab"); + toggleButton5.setText("Tab"); toggleButton5.putClientProperty("JButton.buttonType", "tab"); toggleButton5.setSelected(true); add(toggleButton5, "cell 5 3"); //---- toggleButton8 ---- - toggleButton8.setText("tab"); + toggleButton8.setText("Tab"); toggleButton8.putClientProperty("JButton.buttonType", "tab"); toggleButton8.setEnabled(false); toggleButton8.setSelected(true); @@ -553,23 +553,23 @@ public class FlatComponentsTest add(radioButtonLabel, "cell 0 4"); //---- radioButton1 ---- - radioButton1.setText("enabled"); + radioButton1.setText("Enabled"); radioButton1.setMnemonic('N'); add(radioButton1, "cell 1 4"); //---- radioButton2 ---- - radioButton2.setText("disabled"); + radioButton2.setText("Disabled"); radioButton2.setEnabled(false); radioButton2.setMnemonic('S'); add(radioButton2, "cell 2 4"); //---- radioButton3 ---- - radioButton3.setText("selected"); + radioButton3.setText("Selected"); radioButton3.setSelected(true); add(radioButton3, "cell 3 4"); //---- radioButton4 ---- - radioButton4.setText("selected disabled"); + radioButton4.setText("Selected disabled"); radioButton4.setSelected(true); radioButton4.setEnabled(false); add(radioButton4, "cell 4 4"); @@ -581,7 +581,7 @@ public class FlatComponentsTest //---- comboBox1 ---- comboBox1.setEditable(true); comboBox1.setModel(new DefaultComboBoxModel<>(new String[] { - "editable", + "Editable", "a", "bb", "ccc", @@ -600,7 +600,7 @@ public class FlatComponentsTest comboBox2.setEditable(true); comboBox2.setEnabled(false); comboBox2.setModel(new DefaultComboBoxModel<>(new String[] { - "disabled", + "Disabled", "a", "bb", "ccc" @@ -609,7 +609,7 @@ public class FlatComponentsTest //---- comboBox3 ---- comboBox3.setModel(new DefaultComboBoxModel<>(new String[] { - "not editable", + "Not editable", "a", "bb", "ccc", @@ -626,7 +626,7 @@ public class FlatComponentsTest //---- comboBox4 ---- comboBox4.setModel(new DefaultComboBoxModel<>(new String[] { - "not editable disabled", + "Not editable disabled", "a", "bb", "ccc" @@ -636,7 +636,7 @@ public class FlatComponentsTest //---- comboBox5 ---- comboBox5.setModel(new DefaultComboBoxModel<>(new String[] { - "wide popup if text is longer", + "Wide popup if text is longer", "aa", "bbb", "cccc" @@ -646,7 +646,7 @@ public class FlatComponentsTest //---- comboBox6 ---- comboBox6.setBorder(BorderFactory.createEmptyBorder()); comboBox6.setModel(new DefaultComboBoxModel<>(new String[] { - "empty border", + "Empty border", "a", "b", "c" @@ -664,7 +664,7 @@ public class FlatComponentsTest //---- comboBox7 ---- comboBox7.setEditable(true); - comboBox7.putClientProperty("JTextField.placeholderText", "placeholder"); + comboBox7.putClientProperty("JTextField.placeholderText", "Placeholder"); add(comboBox7, "cell 5 6,growx"); //---- spinner3 ---- @@ -677,31 +677,31 @@ public class FlatComponentsTest add(textFieldLabel, "cell 0 7"); //---- textField1 ---- - textField1.setText("editable"); + textField1.setText("Editable"); add(textField1, "cell 1 7,growx"); //---- textField2 ---- - textField2.setText("disabled"); + textField2.setText("Disabled"); textField2.setEnabled(false); add(textField2, "cell 2 7,growx"); //---- textField3 ---- - textField3.setText("not editable"); + textField3.setText("Not editable"); textField3.setEditable(false); add(textField3, "cell 3 7,growx"); //---- textField4 ---- - textField4.setText("not editable disabled"); + textField4.setText("Not editable disabled"); textField4.setEnabled(false); textField4.setEditable(false); add(textField4, "cell 4 7,growx"); //---- textField6 ---- - textField6.putClientProperty("JTextField.placeholderText", "placeholder"); + textField6.putClientProperty("JTextField.placeholderText", "Placeholder"); add(textField6, "cell 5 7,growx"); //---- textField5 ---- - textField5.setText("empty border"); + textField5.setText("Empty border"); textField5.setBorder(BorderFactory.createEmptyBorder()); add(textField5, "cell 6 7"); @@ -710,31 +710,31 @@ public class FlatComponentsTest add(formattedTextFieldLabel, "cell 0 8"); //---- formattedTextField1 ---- - formattedTextField1.setText("editable"); + formattedTextField1.setText("Editable"); add(formattedTextField1, "cell 1 8,growx"); //---- formattedTextField2 ---- - formattedTextField2.setText("disabled"); + formattedTextField2.setText("Disabled"); formattedTextField2.setEnabled(false); add(formattedTextField2, "cell 2 8,growx"); //---- formattedTextField3 ---- - formattedTextField3.setText("not editable"); + formattedTextField3.setText("Not editable"); formattedTextField3.setEditable(false); add(formattedTextField3, "cell 3 8,growx"); //---- formattedTextField4 ---- - formattedTextField4.setText("not editable disabled"); + formattedTextField4.setText("Not editable disabled"); formattedTextField4.setEnabled(false); formattedTextField4.setEditable(false); add(formattedTextField4, "cell 4 8,growx"); //---- formattedTextField5 ---- - formattedTextField5.putClientProperty("JTextField.placeholderText", "placeholder"); + formattedTextField5.putClientProperty("JTextField.placeholderText", "Placeholder"); add(formattedTextField5, "cell 5 8,growx"); //---- formattedTextField6 ---- - formattedTextField6.setText("empty border"); + formattedTextField6.setText("Empty border"); formattedTextField6.setBorder(BorderFactory.createEmptyBorder()); add(formattedTextField6, "cell 6 8"); @@ -743,27 +743,27 @@ public class FlatComponentsTest add(passwordFieldLabel, "cell 0 9"); //---- passwordField1 ---- - passwordField1.setText("editable"); + passwordField1.setText("Editable"); add(passwordField1, "cell 1 9,growx"); //---- passwordField2 ---- - passwordField2.setText("disabled"); + passwordField2.setText("Disabled"); passwordField2.setEnabled(false); add(passwordField2, "cell 2 9,growx"); //---- passwordField3 ---- - passwordField3.setText("not editable"); + passwordField3.setText("Not editable"); passwordField3.setEditable(false); add(passwordField3, "cell 3 9,growx"); //---- passwordField4 ---- - passwordField4.setText("not editable disabled"); + passwordField4.setText("Not editable disabled"); passwordField4.setEnabled(false); passwordField4.setEditable(false); add(passwordField4, "cell 4 9,growx"); //---- passwordField5 ---- - passwordField5.putClientProperty("JTextField.placeholderText", "placeholder"); + passwordField5.putClientProperty("JTextField.placeholderText", "Placeholder"); add(passwordField5, "cell 5 9,growx"); //---- passwordField6 ---- @@ -781,7 +781,7 @@ public class FlatComponentsTest scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea1 ---- - textArea1.setText("editable"); + textArea1.setText("Editable"); textArea1.setRows(2); scrollPane1.setViewportView(textArea1); } @@ -793,7 +793,7 @@ public class FlatComponentsTest scrollPane2.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea2 ---- - textArea2.setText("disabled"); + textArea2.setText("Disabled"); textArea2.setRows(2); textArea2.setEnabled(false); scrollPane2.setViewportView(textArea2); @@ -806,7 +806,7 @@ public class FlatComponentsTest scrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea3 ---- - textArea3.setText("not editable"); + textArea3.setText("Not editable"); textArea3.setRows(2); textArea3.setEditable(false); scrollPane3.setViewportView(textArea3); @@ -819,7 +819,7 @@ public class FlatComponentsTest scrollPane4.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textArea4 ---- - textArea4.setText("not editable disabled"); + textArea4.setText("Not editable disabled"); textArea4.setRows(2); textArea4.setEditable(false); textArea4.setEnabled(false); @@ -829,7 +829,7 @@ public class FlatComponentsTest //---- textArea5 ---- textArea5.setRows(2); - textArea5.setText("no scroll pane"); + textArea5.setText("No scroll pane"); add(textArea5, "cell 5 10,growx"); //---- editorPaneLabel ---- @@ -842,7 +842,7 @@ public class FlatComponentsTest scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane1 ---- - editorPane1.setText("editable"); + editorPane1.setText("Editable"); scrollPane5.setViewportView(editorPane1); } add(scrollPane5, "cell 1 11,growx"); @@ -853,7 +853,7 @@ public class FlatComponentsTest scrollPane6.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane2 ---- - editorPane2.setText("disabled"); + editorPane2.setText("Disabled"); editorPane2.setEnabled(false); scrollPane6.setViewportView(editorPane2); } @@ -865,7 +865,7 @@ public class FlatComponentsTest scrollPane7.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane3 ---- - editorPane3.setText("not editable"); + editorPane3.setText("Not editable"); editorPane3.setEditable(false); scrollPane7.setViewportView(editorPane3); } @@ -877,7 +877,7 @@ public class FlatComponentsTest scrollPane8.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- editorPane4 ---- - editorPane4.setText("not editable disabled"); + editorPane4.setText("Not editable disabled"); editorPane4.setEditable(false); editorPane4.setEnabled(false); scrollPane8.setViewportView(editorPane4); @@ -885,7 +885,7 @@ public class FlatComponentsTest add(scrollPane8, "cell 4 11,growx"); //---- editorPane5 ---- - editorPane5.setText("no scroll pane"); + editorPane5.setText("No scroll pane"); add(editorPane5, "cell 5 11,growx"); //---- textPaneLabel ---- @@ -898,7 +898,7 @@ public class FlatComponentsTest scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane1 ---- - textPane1.setText("editable"); + textPane1.setText("Editable"); scrollPane9.setViewportView(textPane1); } add(scrollPane9, "cell 1 12,growx"); @@ -909,7 +909,7 @@ public class FlatComponentsTest scrollPane10.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane2 ---- - textPane2.setText("disabled"); + textPane2.setText("Disabled"); textPane2.setEnabled(false); scrollPane10.setViewportView(textPane2); } @@ -921,7 +921,7 @@ public class FlatComponentsTest scrollPane11.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane3 ---- - textPane3.setText("not editable"); + textPane3.setText("Not editable"); textPane3.setEditable(false); scrollPane11.setViewportView(textPane3); } @@ -933,7 +933,7 @@ public class FlatComponentsTest scrollPane12.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); //---- textPane4 ---- - textPane4.setText("not editable disabled"); + textPane4.setText("Not editable disabled"); textPane4.setEditable(false); textPane4.setEnabled(false); scrollPane12.setViewportView(textPane4); @@ -941,7 +941,7 @@ public class FlatComponentsTest add(scrollPane12, "cell 4 12,growx"); //---- textPane5 ---- - textPane5.setText("no scroll pane"); + textPane5.setText("No scroll pane"); add(textPane5, "cell 5 12,growx"); //---- scrollPaneLabel ---- diff --git a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.jfd b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.jfd index 2d34c7bc..3980a7d1 100644 --- a/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.jfd +++ b/flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/FlatComponentsTest.jfd @@ -1,4 +1,4 @@ -JFDML JFormDesigner: "7.0.1.0.272" Java: "13.0.2" encoding: "UTF-8" +JFDML JFormDesigner: "7.0.2.0.298" Java: "14" encoding: "UTF-8" new FormModel { contentType: "form/swing" @@ -20,14 +20,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "label1" - "text": "enabled" + "text": "Enabled" "displayedMnemonic": 69 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 0" } ) add( new FormComponent( "javax.swing.JLabel" ) { name: "label2" - "text": "disabled" + "text": "Disabled" "displayedMnemonic": 68 "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -41,7 +41,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button1" - "text": "enabled" + "text": "Enabled" "displayedMnemonicIndex": 0 "toolTipText": "This button is enabled." }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -49,7 +49,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button17" - "text": "sq" + "text": "Sq" "$client.JButton.buttonType": "square" "$client.JComponent.minimumWidth": 0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -57,7 +57,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button22" - "text": "rd" + "text": "Rd" "$client.JButton.buttonType": "roundRect" "$client.JComponent.minimumWidth": 0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -65,7 +65,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button2" - "text": "disabled" + "text": "Disabled" "displayedMnemonicIndex": 0 "enabled": false "toolTipText": "This button is disabled." @@ -74,7 +74,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button18" - "text": "sq" + "text": "Sq" "$client.JButton.buttonType": "square" "enabled": false "$client.JComponent.minimumWidth": 0 @@ -83,7 +83,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button23" - "text": "rd" + "text": "Rd" "$client.JButton.buttonType": "roundRect" "enabled": false "$client.JComponent.minimumWidth": 0 @@ -92,7 +92,7 @@ new FormModel { } ) add( new FormComponent( "com.formdev.flatlaf.testing.FlatComponentsTest$TestDefaultButton" ) { name: "button5" - "text": "default" + "text": "Default" "displayedMnemonicIndex": 0 "toolTipText": "Tool tip with\nmultiple\nlines." }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -139,7 +139,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JButton" ) { name: "button20" - "text": "empty border" + "text": "Empty border" "border": &EmptyBorder0 new javax.swing.border.EmptyBorder( 0, 0, 0, 0 ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 6 1" @@ -152,34 +152,34 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton1" - "text": "enabled" + "text": "Enabled" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 2" } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton9" - "text": "sq" + "text": "Sq" "$client.JButton.buttonType": "square" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 2" } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton19" - "text": "rd" + "text": "Rd" "$client.JButton.buttonType": "roundRect" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 2" } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 2" } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton10" - "text": "sq" + "text": "Sq" "$client.JButton.buttonType": "square" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -187,7 +187,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton20" - "text": "rd" + "text": "Rd" "$client.JButton.buttonType": "roundRect" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -195,14 +195,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton3" - "text": "selected" + "text": "Selected" "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 2" } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton4" - "text": "selected disabled" + "text": "Selected disabled" "enabled": false "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -238,7 +238,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton18" - "text": "empty border" + "text": "Empty border" "border": #EmptyBorder0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 6 2" @@ -251,14 +251,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox1" - "text": "enabled" + "text": "Enabled" "mnemonic": 65 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 3" } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox2" - "text": "disabled" + "text": "Disabled" "enabled": false "mnemonic": 68 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -266,14 +266,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox3" - "text": "selected" + "text": "Selected" "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 3" } ) add( new FormComponent( "javax.swing.JCheckBox" ) { name: "checkBox4" - "text": "selected disabled" + "text": "Selected disabled" "selected": true "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -281,7 +281,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton5" - "text": "tab" + "text": "Tab" "$client.JButton.buttonType": "tab" "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -289,7 +289,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JToggleButton" ) { name: "toggleButton8" - "text": "tab" + "text": "Tab" "$client.JButton.buttonType": "tab" "enabled": false "selected": true @@ -304,14 +304,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton1" - "text": "enabled" + "text": "Enabled" "mnemonic": 78 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 4" } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton2" - "text": "disabled" + "text": "Disabled" "enabled": false "mnemonic": 83 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -319,14 +319,14 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton3" - "text": "selected" + "text": "Selected" "selected": true }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 4" } ) add( new FormComponent( "javax.swing.JRadioButton" ) { name: "radioButton4" - "text": "selected disabled" + "text": "Selected disabled" "selected": true "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -342,8 +342,8 @@ new FormModel { name: "comboBox1" "editable": true "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "editable" - addElement( "editable" ) + selectedItem: "Editable" + addElement( "Editable" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -364,8 +364,8 @@ new FormModel { "editable": true "enabled": false "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "disabled" - addElement( "disabled" ) + selectedItem: "Disabled" + addElement( "Disabled" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -376,8 +376,8 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox3" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "not editable" - addElement( "not editable" ) + selectedItem: "Not editable" + addElement( "Not editable" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -396,8 +396,8 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox4" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "not editable disabled" - addElement( "not editable disabled" ) + selectedItem: "Not editable disabled" + addElement( "Not editable disabled" ) addElement( "a" ) addElement( "bb" ) addElement( "ccc" ) @@ -409,8 +409,8 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox5" "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "wide popup if text is longer" - addElement( "wide popup if text is longer" ) + selectedItem: "Wide popup if text is longer" + addElement( "Wide popup if text is longer" ) addElement( "aa" ) addElement( "bbb" ) addElement( "cccc" ) @@ -422,8 +422,8 @@ new FormModel { name: "comboBox6" "border": #EmptyBorder0 "model": new javax.swing.DefaultComboBoxModel { - selectedItem: "empty border" - addElement( "empty border" ) + selectedItem: "Empty border" + addElement( "Empty border" ) addElement( "a" ) addElement( "b" ) addElement( "c" ) @@ -451,7 +451,7 @@ new FormModel { add( new FormComponent( "javax.swing.JComboBox" ) { name: "comboBox7" "editable": true - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" auxiliary() { "JavaCodeGenerator.typeParameters": "String" } @@ -475,7 +475,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField1" - "text": "editable" + "text": "Editable" auxiliary() { "JavaCodeGenerator.variableLocal": false } @@ -484,21 +484,21 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 7,growx" } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField3" - "text": "not editable" + "text": "Not editable" "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 7,growx" } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField4" - "text": "not editable disabled" + "text": "Not editable disabled" "enabled": false "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -506,13 +506,13 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField6" - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 7,growx" } ) add( new FormComponent( "javax.swing.JTextField" ) { name: "textField5" - "text": "empty border" + "text": "Empty border" "border": #EmptyBorder0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 6 7" @@ -525,27 +525,27 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField1" - "text": "editable" + "text": "Editable" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 8,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 8,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField3" - "text": "not editable" + "text": "Not editable" "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 8,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField4" - "text": "not editable disabled" + "text": "Not editable disabled" "enabled": false "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -553,13 +553,13 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField5" - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 8,growx" } ) add( new FormComponent( "javax.swing.JFormattedTextField" ) { name: "formattedTextField6" - "text": "empty border" + "text": "Empty border" "border": #EmptyBorder0 }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 6 8" @@ -572,27 +572,27 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField1" - "text": "editable" + "text": "Editable" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 9,growx" } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField2" - "text": "disabled" + "text": "Disabled" "enabled": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 2 9,growx" } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField3" - "text": "not editable" + "text": "Not editable" "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 3 9,growx" } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField4" - "text": "not editable disabled" + "text": "Not editable disabled" "enabled": false "editable": false }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -600,7 +600,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JPasswordField" ) { name: "passwordField5" - "$client.JTextField.placeholderText": "placeholder" + "$client.JTextField.placeholderText": "Placeholder" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 9,growx" } ) @@ -623,7 +623,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea1" - "text": "editable" + "text": "Editable" "rows": 2 } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -635,7 +635,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea2" - "text": "disabled" + "text": "Disabled" "rows": 2 "enabled": false } ) @@ -648,7 +648,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea3" - "text": "not editable" + "text": "Not editable" "rows": 2 "editable": false } ) @@ -661,7 +661,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea4" - "text": "not editable disabled" + "text": "Not editable disabled" "rows": 2 "editable": false "enabled": false @@ -672,7 +672,7 @@ new FormModel { add( new FormComponent( "javax.swing.JTextArea" ) { name: "textArea5" "rows": 2 - "text": "no scroll pane" + "text": "No scroll pane" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 10,growx" } ) @@ -688,7 +688,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane1" - "text": "editable" + "text": "Editable" } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 11,growx" @@ -699,7 +699,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane2" - "text": "disabled" + "text": "Disabled" "enabled": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -711,7 +711,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane3" - "text": "not editable" + "text": "Not editable" "editable": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -723,7 +723,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane4" - "text": "not editable disabled" + "text": "Not editable disabled" "editable": false "enabled": false } ) @@ -732,7 +732,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JEditorPane" ) { name: "editorPane5" - "text": "no scroll pane" + "text": "No scroll pane" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 11,growx" } ) @@ -748,7 +748,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane1" - "text": "editable" + "text": "Editable" } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 1 12,growx" @@ -759,7 +759,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane2" - "text": "disabled" + "text": "Disabled" "enabled": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -771,7 +771,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane3" - "text": "not editable" + "text": "Not editable" "editable": false } ) }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { @@ -783,7 +783,7 @@ new FormModel { "horizontalScrollBarPolicy": 31 add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane4" - "text": "not editable disabled" + "text": "Not editable disabled" "editable": false "enabled": false } ) @@ -792,7 +792,7 @@ new FormModel { } ) add( new FormComponent( "javax.swing.JTextPane" ) { name: "textPane5" - "text": "no scroll pane" + "text": "No scroll pane" }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { "value": "cell 5 12,growx" } )