mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
ComboBox basic implementation
This commit is contained in:
@@ -75,6 +75,11 @@ public class FlatComponentsTest
|
||||
JRadioButton radioButton2 = new JRadioButton();
|
||||
JRadioButton radioButton3 = new JRadioButton();
|
||||
JRadioButton radioButton4 = new JRadioButton();
|
||||
JLabel comboBoxLabel = new JLabel();
|
||||
JComboBox<String> comboBox1 = new JComboBox<>();
|
||||
JComboBox<String> comboBox2 = new JComboBox<>();
|
||||
JComboBox<String> comboBox3 = new JComboBox<>();
|
||||
JComboBox<String> comboBox4 = new JComboBox<>();
|
||||
JLabel textFieldLabel = new JLabel();
|
||||
JTextField textField1 = new JTextField();
|
||||
JTextField textField2 = new JTextField();
|
||||
@@ -160,6 +165,7 @@ public class FlatComponentsTest
|
||||
"[]" +
|
||||
"[]" +
|
||||
"[]" +
|
||||
"[]" +
|
||||
"[]"));
|
||||
|
||||
//---- labelLabel ----
|
||||
@@ -260,81 +266,125 @@ public class FlatComponentsTest
|
||||
radioButton4.setEnabled(false);
|
||||
add(radioButton4, "cell 4 3");
|
||||
|
||||
//---- comboBoxLabel ----
|
||||
comboBoxLabel.setText("JComboBox:");
|
||||
add(comboBoxLabel, "cell 0 4");
|
||||
|
||||
//---- comboBox1 ----
|
||||
comboBox1.setEditable(true);
|
||||
comboBox1.setModel(new DefaultComboBoxModel<>(new String[] {
|
||||
"editable",
|
||||
"a",
|
||||
"bb",
|
||||
"ccc"
|
||||
}));
|
||||
add(comboBox1, "cell 1 4,growx");
|
||||
|
||||
//---- comboBox2 ----
|
||||
comboBox2.setEditable(true);
|
||||
comboBox2.setEnabled(false);
|
||||
comboBox2.setModel(new DefaultComboBoxModel<>(new String[] {
|
||||
"disabled",
|
||||
"a",
|
||||
"bb",
|
||||
"ccc"
|
||||
}));
|
||||
add(comboBox2, "cell 2 4,growx");
|
||||
|
||||
//---- comboBox3 ----
|
||||
comboBox3.setModel(new DefaultComboBoxModel<>(new String[] {
|
||||
"not editable",
|
||||
"a",
|
||||
"bb",
|
||||
"ccc"
|
||||
}));
|
||||
add(comboBox3, "cell 3 4,growx");
|
||||
|
||||
//---- comboBox4 ----
|
||||
comboBox4.setModel(new DefaultComboBoxModel<>(new String[] {
|
||||
"not editable disabled",
|
||||
"a",
|
||||
"bb",
|
||||
"ccc"
|
||||
}));
|
||||
comboBox4.setEnabled(false);
|
||||
add(comboBox4, "cell 4 4,growx");
|
||||
|
||||
//---- textFieldLabel ----
|
||||
textFieldLabel.setText("JTextField:");
|
||||
add(textFieldLabel, "cell 0 4");
|
||||
add(textFieldLabel, "cell 0 5");
|
||||
|
||||
//---- textField1 ----
|
||||
textField1.setText("editable");
|
||||
add(textField1, "cell 1 4,growx");
|
||||
add(textField1, "cell 1 5,growx");
|
||||
|
||||
//---- textField2 ----
|
||||
textField2.setText("disabled");
|
||||
textField2.setEnabled(false);
|
||||
add(textField2, "cell 2 4,growx");
|
||||
add(textField2, "cell 2 5,growx");
|
||||
|
||||
//---- textField3 ----
|
||||
textField3.setText("not editable");
|
||||
textField3.setEditable(false);
|
||||
add(textField3, "cell 3 4,growx");
|
||||
add(textField3, "cell 3 5,growx");
|
||||
|
||||
//---- textField4 ----
|
||||
textField4.setText("not editable disabled");
|
||||
textField4.setEnabled(false);
|
||||
textField4.setEditable(false);
|
||||
add(textField4, "cell 4 4,growx");
|
||||
add(textField4, "cell 4 5,growx");
|
||||
|
||||
//---- formattedTextFieldLabel ----
|
||||
formattedTextFieldLabel.setText("JFormattedTextField:");
|
||||
add(formattedTextFieldLabel, "cell 0 5");
|
||||
add(formattedTextFieldLabel, "cell 0 6");
|
||||
|
||||
//---- formattedTextField1 ----
|
||||
formattedTextField1.setText("editable");
|
||||
add(formattedTextField1, "cell 1 5,growx");
|
||||
add(formattedTextField1, "cell 1 6,growx");
|
||||
|
||||
//---- formattedTextField2 ----
|
||||
formattedTextField2.setText("disabled");
|
||||
formattedTextField2.setEnabled(false);
|
||||
add(formattedTextField2, "cell 2 5,growx");
|
||||
add(formattedTextField2, "cell 2 6,growx");
|
||||
|
||||
//---- formattedTextField3 ----
|
||||
formattedTextField3.setText("not editable");
|
||||
formattedTextField3.setEditable(false);
|
||||
add(formattedTextField3, "cell 3 5,growx");
|
||||
add(formattedTextField3, "cell 3 6,growx");
|
||||
|
||||
//---- formattedTextField4 ----
|
||||
formattedTextField4.setText("not editable disabled");
|
||||
formattedTextField4.setEnabled(false);
|
||||
formattedTextField4.setEditable(false);
|
||||
add(formattedTextField4, "cell 4 5,growx");
|
||||
add(formattedTextField4, "cell 4 6,growx");
|
||||
|
||||
//---- passwordFieldLabel ----
|
||||
passwordFieldLabel.setText("JPasswordField:");
|
||||
add(passwordFieldLabel, "cell 0 6");
|
||||
add(passwordFieldLabel, "cell 0 7");
|
||||
|
||||
//---- passwordField1 ----
|
||||
passwordField1.setText("editable");
|
||||
add(passwordField1, "cell 1 6,growx");
|
||||
add(passwordField1, "cell 1 7,growx");
|
||||
|
||||
//---- passwordField2 ----
|
||||
passwordField2.setText("disabled");
|
||||
passwordField2.setEnabled(false);
|
||||
add(passwordField2, "cell 2 6,growx");
|
||||
add(passwordField2, "cell 2 7,growx");
|
||||
|
||||
//---- passwordField3 ----
|
||||
passwordField3.setText("not editable");
|
||||
passwordField3.setEditable(false);
|
||||
add(passwordField3, "cell 3 6,growx");
|
||||
add(passwordField3, "cell 3 7,growx");
|
||||
|
||||
//---- passwordField4 ----
|
||||
passwordField4.setText("not editable disabled");
|
||||
passwordField4.setEnabled(false);
|
||||
passwordField4.setEditable(false);
|
||||
add(passwordField4, "cell 4 6,growx");
|
||||
add(passwordField4, "cell 4 7,growx");
|
||||
|
||||
//---- textAreaLabel ----
|
||||
textAreaLabel.setText("JTextArea:");
|
||||
add(textAreaLabel, "cell 0 7");
|
||||
add(textAreaLabel, "cell 0 8");
|
||||
|
||||
//======== scrollPane1 ========
|
||||
{
|
||||
@@ -346,7 +396,7 @@ public class FlatComponentsTest
|
||||
textArea1.setRows(2);
|
||||
scrollPane1.setViewportView(textArea1);
|
||||
}
|
||||
add(scrollPane1, "cell 1 7,growx");
|
||||
add(scrollPane1, "cell 1 8,growx");
|
||||
|
||||
//======== scrollPane2 ========
|
||||
{
|
||||
@@ -359,7 +409,7 @@ public class FlatComponentsTest
|
||||
textArea2.setEnabled(false);
|
||||
scrollPane2.setViewportView(textArea2);
|
||||
}
|
||||
add(scrollPane2, "cell 2 7,growx");
|
||||
add(scrollPane2, "cell 2 8,growx");
|
||||
|
||||
//======== scrollPane3 ========
|
||||
{
|
||||
@@ -372,7 +422,7 @@ public class FlatComponentsTest
|
||||
textArea3.setEditable(false);
|
||||
scrollPane3.setViewportView(textArea3);
|
||||
}
|
||||
add(scrollPane3, "cell 3 7,growx");
|
||||
add(scrollPane3, "cell 3 8,growx");
|
||||
|
||||
//======== scrollPane4 ========
|
||||
{
|
||||
@@ -386,16 +436,16 @@ public class FlatComponentsTest
|
||||
textArea4.setEnabled(false);
|
||||
scrollPane4.setViewportView(textArea4);
|
||||
}
|
||||
add(scrollPane4, "cell 4 7,growx");
|
||||
add(scrollPane4, "cell 4 8,growx");
|
||||
|
||||
//---- textArea5 ----
|
||||
textArea5.setRows(2);
|
||||
textArea5.setText("no scroll pane");
|
||||
add(textArea5, "cell 5 7,growx");
|
||||
add(textArea5, "cell 5 8,growx");
|
||||
|
||||
//---- editorPaneLabel ----
|
||||
editorPaneLabel.setText("JEditorPane");
|
||||
add(editorPaneLabel, "cell 0 8");
|
||||
add(editorPaneLabel, "cell 0 9");
|
||||
|
||||
//======== scrollPane5 ========
|
||||
{
|
||||
@@ -406,7 +456,7 @@ public class FlatComponentsTest
|
||||
editorPane1.setText("editable");
|
||||
scrollPane5.setViewportView(editorPane1);
|
||||
}
|
||||
add(scrollPane5, "cell 1 8,growx");
|
||||
add(scrollPane5, "cell 1 9,growx");
|
||||
|
||||
//======== scrollPane6 ========
|
||||
{
|
||||
@@ -418,7 +468,7 @@ public class FlatComponentsTest
|
||||
editorPane2.setEnabled(false);
|
||||
scrollPane6.setViewportView(editorPane2);
|
||||
}
|
||||
add(scrollPane6, "cell 2 8,growx");
|
||||
add(scrollPane6, "cell 2 9,growx");
|
||||
|
||||
//======== scrollPane7 ========
|
||||
{
|
||||
@@ -430,7 +480,7 @@ public class FlatComponentsTest
|
||||
editorPane3.setEditable(false);
|
||||
scrollPane7.setViewportView(editorPane3);
|
||||
}
|
||||
add(scrollPane7, "cell 3 8,growx");
|
||||
add(scrollPane7, "cell 3 9,growx");
|
||||
|
||||
//======== scrollPane8 ========
|
||||
{
|
||||
@@ -443,15 +493,15 @@ public class FlatComponentsTest
|
||||
editorPane4.setEnabled(false);
|
||||
scrollPane8.setViewportView(editorPane4);
|
||||
}
|
||||
add(scrollPane8, "cell 4 8,growx");
|
||||
add(scrollPane8, "cell 4 9,growx");
|
||||
|
||||
//---- editorPane5 ----
|
||||
editorPane5.setText("no scroll pane");
|
||||
add(editorPane5, "cell 5 8,growx");
|
||||
add(editorPane5, "cell 5 9,growx");
|
||||
|
||||
//---- textPaneLabel ----
|
||||
textPaneLabel.setText("JTextPane:");
|
||||
add(textPaneLabel, "cell 0 9");
|
||||
add(textPaneLabel, "cell 0 10");
|
||||
|
||||
//======== scrollPane9 ========
|
||||
{
|
||||
@@ -462,7 +512,7 @@ public class FlatComponentsTest
|
||||
textPane1.setText("editable");
|
||||
scrollPane9.setViewportView(textPane1);
|
||||
}
|
||||
add(scrollPane9, "cell 1 9,growx");
|
||||
add(scrollPane9, "cell 1 10,growx");
|
||||
|
||||
//======== scrollPane10 ========
|
||||
{
|
||||
@@ -474,7 +524,7 @@ public class FlatComponentsTest
|
||||
textPane2.setEnabled(false);
|
||||
scrollPane10.setViewportView(textPane2);
|
||||
}
|
||||
add(scrollPane10, "cell 2 9,growx");
|
||||
add(scrollPane10, "cell 2 10,growx");
|
||||
|
||||
//======== scrollPane11 ========
|
||||
{
|
||||
@@ -486,7 +536,7 @@ public class FlatComponentsTest
|
||||
textPane3.setEditable(false);
|
||||
scrollPane11.setViewportView(textPane3);
|
||||
}
|
||||
add(scrollPane11, "cell 3 9,growx");
|
||||
add(scrollPane11, "cell 3 10,growx");
|
||||
|
||||
//======== scrollPane12 ========
|
||||
{
|
||||
@@ -499,15 +549,15 @@ public class FlatComponentsTest
|
||||
textPane4.setEnabled(false);
|
||||
scrollPane12.setViewportView(textPane4);
|
||||
}
|
||||
add(scrollPane12, "cell 4 9,growx");
|
||||
add(scrollPane12, "cell 4 10,growx");
|
||||
|
||||
//---- textPane5 ----
|
||||
textPane5.setText("no scroll pane");
|
||||
add(textPane5, "cell 5 9,growx");
|
||||
add(textPane5, "cell 5 10,growx");
|
||||
|
||||
//---- scrollPaneLabel ----
|
||||
scrollPaneLabel.setText("JScrollPane:");
|
||||
add(scrollPaneLabel, "cell 0 10");
|
||||
add(scrollPaneLabel, "cell 0 11");
|
||||
|
||||
//======== scrollPane13 ========
|
||||
{
|
||||
@@ -521,55 +571,55 @@ public class FlatComponentsTest
|
||||
}
|
||||
scrollPane13.setViewportView(panel1);
|
||||
}
|
||||
add(scrollPane13, "cell 1 10,grow,width 70,height 70");
|
||||
add(scrollBar2, "cell 2 10,growy");
|
||||
add(scrollPane13, "cell 1 11,grow,width 70,height 70");
|
||||
add(scrollBar2, "cell 2 11,growy");
|
||||
|
||||
//---- scrollBar3 ----
|
||||
scrollBar3.setEnabled(false);
|
||||
add(scrollBar3, "cell 2 10,growy");
|
||||
add(scrollPane14, "cell 3 10,grow");
|
||||
add(scrollBar3, "cell 2 11,growy");
|
||||
add(scrollPane14, "cell 3 11,grow");
|
||||
|
||||
//---- progressBar3 ----
|
||||
progressBar3.setOrientation(SwingConstants.VERTICAL);
|
||||
progressBar3.setValue(50);
|
||||
add(progressBar3, "cell 4 10");
|
||||
add(progressBar3, "cell 4 11");
|
||||
|
||||
//---- progressBar4 ----
|
||||
progressBar4.setOrientation(SwingConstants.VERTICAL);
|
||||
progressBar4.setValue(55);
|
||||
progressBar4.setStringPainted(true);
|
||||
add(progressBar4, "cell 4 10");
|
||||
add(progressBar4, "cell 4 11");
|
||||
|
||||
//---- scrollBarLabel ----
|
||||
scrollBarLabel.setText("JScrollBar:");
|
||||
add(scrollBarLabel, "cell 0 11");
|
||||
add(scrollBarLabel, "cell 0 12");
|
||||
|
||||
//---- scrollBar1 ----
|
||||
scrollBar1.setOrientation(Adjustable.HORIZONTAL);
|
||||
add(scrollBar1, "cell 1 11,growx");
|
||||
add(scrollBar1, "cell 1 12,growx");
|
||||
|
||||
//---- scrollBar4 ----
|
||||
scrollBar4.setOrientation(Adjustable.HORIZONTAL);
|
||||
scrollBar4.setEnabled(false);
|
||||
add(scrollBar4, "cell 1 12,growx");
|
||||
add(scrollBar4, "cell 1 13,growx");
|
||||
|
||||
//---- progressBarLabel ----
|
||||
progressBarLabel.setText("JProgressBar:");
|
||||
add(progressBarLabel, "cell 0 13");
|
||||
add(progressBarLabel, "cell 0 14");
|
||||
|
||||
//---- progressBar1 ----
|
||||
progressBar1.setValue(50);
|
||||
add(progressBar1, "cell 1 13");
|
||||
add(progressBar1, "cell 1 14");
|
||||
|
||||
//---- progressBar2 ----
|
||||
progressBar2.setStringPainted(true);
|
||||
progressBar2.setValue(55);
|
||||
add(progressBar2, "cell 3 13");
|
||||
add(progressBar2, "cell 3 14");
|
||||
|
||||
//---- indeterminateCheckBox ----
|
||||
indeterminateCheckBox.setText("indeterminate");
|
||||
indeterminateCheckBox.addActionListener(e -> indeterminateCheckBoxActionPerformed());
|
||||
add(indeterminateCheckBox, "cell 4 13");
|
||||
add(indeterminateCheckBox, "cell 4 14");
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ new FormModel {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||
"$layoutConstraints": "insets 0,hidemode 3,gap 5 5"
|
||||
"$columnConstraints": "[][][][][][]"
|
||||
"$rowConstraints": "[][][][][][][][][][][][][][]"
|
||||
"$rowConstraints": "[][][][][][][][][][][][][][][]"
|
||||
} ) {
|
||||
name: "this"
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
@@ -148,31 +148,89 @@ new FormModel {
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 3"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "comboBoxLabel"
|
||||
"text": "JComboBox:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 4"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JComboBox" ) {
|
||||
name: "comboBox1"
|
||||
"editable": true
|
||||
"model": new javax.swing.DefaultComboBoxModel {
|
||||
selectedItem: "editable"
|
||||
addElement( "editable" )
|
||||
addElement( "a" )
|
||||
addElement( "bb" )
|
||||
addElement( "ccc" )
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 4,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JComboBox" ) {
|
||||
name: "comboBox2"
|
||||
"editable": true
|
||||
"enabled": false
|
||||
"model": new javax.swing.DefaultComboBoxModel {
|
||||
selectedItem: "disabled"
|
||||
addElement( "disabled" )
|
||||
addElement( "a" )
|
||||
addElement( "bb" )
|
||||
addElement( "ccc" )
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 4,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JComboBox" ) {
|
||||
name: "comboBox3"
|
||||
"model": new javax.swing.DefaultComboBoxModel {
|
||||
selectedItem: "not editable"
|
||||
addElement( "not editable" )
|
||||
addElement( "a" )
|
||||
addElement( "bb" )
|
||||
addElement( "ccc" )
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 4,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JComboBox" ) {
|
||||
name: "comboBox4"
|
||||
"model": new javax.swing.DefaultComboBoxModel {
|
||||
selectedItem: "not editable disabled"
|
||||
addElement( "not editable disabled" )
|
||||
addElement( "a" )
|
||||
addElement( "bb" )
|
||||
addElement( "ccc" )
|
||||
}
|
||||
"enabled": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 4,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "textFieldLabel"
|
||||
"text": "JTextField:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 4"
|
||||
"value": "cell 0 5"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField1"
|
||||
"text": "editable"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 4,growx"
|
||||
"value": "cell 1 5,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField2"
|
||||
"text": "disabled"
|
||||
"enabled": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 4,growx"
|
||||
"value": "cell 2 5,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField3"
|
||||
"text": "not editable"
|
||||
"editable": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 4,growx"
|
||||
"value": "cell 3 5,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField4"
|
||||
@@ -180,33 +238,33 @@ new FormModel {
|
||||
"enabled": false
|
||||
"editable": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 4,growx"
|
||||
"value": "cell 4 5,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "formattedTextFieldLabel"
|
||||
"text": "JFormattedTextField:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 5"
|
||||
"value": "cell 0 6"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JFormattedTextField" ) {
|
||||
name: "formattedTextField1"
|
||||
"text": "editable"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 5,growx"
|
||||
"value": "cell 1 6,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JFormattedTextField" ) {
|
||||
name: "formattedTextField2"
|
||||
"text": "disabled"
|
||||
"enabled": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 5,growx"
|
||||
"value": "cell 2 6,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JFormattedTextField" ) {
|
||||
name: "formattedTextField3"
|
||||
"text": "not editable"
|
||||
"editable": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 5,growx"
|
||||
"value": "cell 3 6,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JFormattedTextField" ) {
|
||||
name: "formattedTextField4"
|
||||
@@ -214,33 +272,33 @@ new FormModel {
|
||||
"enabled": false
|
||||
"editable": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 5,growx"
|
||||
"value": "cell 4 6,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "passwordFieldLabel"
|
||||
"text": "JPasswordField:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 6"
|
||||
"value": "cell 0 7"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JPasswordField" ) {
|
||||
name: "passwordField1"
|
||||
"text": "editable"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 6,growx"
|
||||
"value": "cell 1 7,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JPasswordField" ) {
|
||||
name: "passwordField2"
|
||||
"text": "disabled"
|
||||
"enabled": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 6,growx"
|
||||
"value": "cell 2 7,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JPasswordField" ) {
|
||||
name: "passwordField3"
|
||||
"text": "not editable"
|
||||
"editable": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 6,growx"
|
||||
"value": "cell 3 7,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JPasswordField" ) {
|
||||
name: "passwordField4"
|
||||
@@ -248,13 +306,13 @@ new FormModel {
|
||||
"enabled": false
|
||||
"editable": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 6,growx"
|
||||
"value": "cell 4 7,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "textAreaLabel"
|
||||
"text": "JTextArea:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 7"
|
||||
"value": "cell 0 8"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane1"
|
||||
@@ -266,7 +324,7 @@ new FormModel {
|
||||
"rows": 2
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 7,growx"
|
||||
"value": "cell 1 8,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane2"
|
||||
@@ -279,7 +337,7 @@ new FormModel {
|
||||
"enabled": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 7,growx"
|
||||
"value": "cell 2 8,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane3"
|
||||
@@ -292,7 +350,7 @@ new FormModel {
|
||||
"editable": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 7,growx"
|
||||
"value": "cell 3 8,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane4"
|
||||
@@ -306,20 +364,20 @@ new FormModel {
|
||||
"enabled": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 7,growx"
|
||||
"value": "cell 4 8,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextArea" ) {
|
||||
name: "textArea5"
|
||||
"rows": 2
|
||||
"text": "no scroll pane"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 5 7,growx"
|
||||
"value": "cell 5 8,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "editorPaneLabel"
|
||||
"text": "JEditorPane"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 8"
|
||||
"value": "cell 0 9"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane5"
|
||||
@@ -330,7 +388,7 @@ new FormModel {
|
||||
"text": "editable"
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 8,growx"
|
||||
"value": "cell 1 9,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane6"
|
||||
@@ -342,7 +400,7 @@ new FormModel {
|
||||
"enabled": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 8,growx"
|
||||
"value": "cell 2 9,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane7"
|
||||
@@ -354,7 +412,7 @@ new FormModel {
|
||||
"editable": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 8,growx"
|
||||
"value": "cell 3 9,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane8"
|
||||
@@ -367,19 +425,19 @@ new FormModel {
|
||||
"enabled": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 8,growx"
|
||||
"value": "cell 4 9,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JEditorPane" ) {
|
||||
name: "editorPane5"
|
||||
"text": "no scroll pane"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 5 8,growx"
|
||||
"value": "cell 5 9,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "textPaneLabel"
|
||||
"text": "JTextPane:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 9"
|
||||
"value": "cell 0 10"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane9"
|
||||
@@ -390,7 +448,7 @@ new FormModel {
|
||||
"text": "editable"
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 9,growx"
|
||||
"value": "cell 1 10,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane10"
|
||||
@@ -402,7 +460,7 @@ new FormModel {
|
||||
"enabled": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 9,growx"
|
||||
"value": "cell 2 10,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane11"
|
||||
@@ -414,7 +472,7 @@ new FormModel {
|
||||
"editable": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 9,growx"
|
||||
"value": "cell 3 10,growx"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane12"
|
||||
@@ -427,19 +485,19 @@ new FormModel {
|
||||
"enabled": false
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 9,growx"
|
||||
"value": "cell 4 10,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextPane" ) {
|
||||
name: "textPane5"
|
||||
"text": "no scroll pane"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 5 9,growx"
|
||||
"value": "cell 5 10,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "scrollPaneLabel"
|
||||
"text": "JScrollPane:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 10"
|
||||
"value": "cell 0 11"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane13"
|
||||
@@ -450,23 +508,23 @@ new FormModel {
|
||||
"preferredSize": new java.awt.Dimension( 200, 200 )
|
||||
} )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 10,grow,width 70,height 70"
|
||||
"value": "cell 1 11,grow,width 70,height 70"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JScrollBar" ) {
|
||||
name: "scrollBar2"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 10,growy"
|
||||
"value": "cell 2 11,growy"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JScrollBar" ) {
|
||||
name: "scrollBar3"
|
||||
"enabled": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 10,growy"
|
||||
"value": "cell 2 11,growy"
|
||||
} )
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane14"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 10,grow"
|
||||
"value": "cell 3 11,grow"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JProgressBar" ) {
|
||||
name: "progressBar3"
|
||||
@@ -476,7 +534,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 10"
|
||||
"value": "cell 4 11"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JProgressBar" ) {
|
||||
name: "progressBar4"
|
||||
@@ -487,32 +545,32 @@ new FormModel {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 10"
|
||||
"value": "cell 4 11"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "scrollBarLabel"
|
||||
"text": "JScrollBar:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 11"
|
||||
"value": "cell 0 12"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JScrollBar" ) {
|
||||
name: "scrollBar1"
|
||||
"orientation": 0
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 11,growx"
|
||||
"value": "cell 1 12,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JScrollBar" ) {
|
||||
name: "scrollBar4"
|
||||
"orientation": 0
|
||||
"enabled": false
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 12,growx"
|
||||
"value": "cell 1 13,growx"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "progressBarLabel"
|
||||
"text": "JProgressBar:"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 13"
|
||||
"value": "cell 0 14"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JProgressBar" ) {
|
||||
name: "progressBar1"
|
||||
@@ -521,7 +579,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 13"
|
||||
"value": "cell 1 14"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JProgressBar" ) {
|
||||
name: "progressBar2"
|
||||
@@ -531,7 +589,7 @@ new FormModel {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 13"
|
||||
"value": "cell 3 14"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JCheckBox" ) {
|
||||
name: "indeterminateCheckBox"
|
||||
@@ -541,7 +599,7 @@ new FormModel {
|
||||
}
|
||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "indeterminateCheckBoxActionPerformed", false ) )
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 13"
|
||||
"value": "cell 4 14"
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 0 )
|
||||
|
||||
@@ -61,6 +61,15 @@ CheckBox.icon.checkmarkColor=FFFFFF
|
||||
CheckBox.icon.disabledCheckmarkColor=ABABAB
|
||||
|
||||
|
||||
#---- ComboBox ----
|
||||
|
||||
ComboBox.background=ffffff
|
||||
ComboBox.buttonBackground=f0f0f0
|
||||
ComboBox.buttonEditableBackground=cccccc
|
||||
ComboBox.buttonArrowColor=666666
|
||||
ComboBox.buttonDisabledArrowColor=ABABAB
|
||||
|
||||
|
||||
#---- Component ----
|
||||
|
||||
Component.borderColor=ff0000
|
||||
|
||||
Reference in New Issue
Block a user