mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
FlatComponentsTest: moved components that change something into own "control" panel
This commit is contained in:
@@ -55,6 +55,22 @@ public class FlatComponentsTest
|
|||||||
progressBar4.setIndeterminate( indeterminate );
|
progressBar4.setIndeterminate( indeterminate );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void borderPaintedChanged() {
|
||||||
|
boolean borderPainted = borderPaintedCheckBox.isSelected();
|
||||||
|
|
||||||
|
for( Component c : getComponents() ) {
|
||||||
|
if( c instanceof AbstractButton )
|
||||||
|
((AbstractButton)c).setBorderPainted( borderPainted );
|
||||||
|
else if( c instanceof JProgressBar )
|
||||||
|
((JProgressBar)c).setBorderPainted( borderPainted );
|
||||||
|
else if( c instanceof JToolBar )
|
||||||
|
((JToolBar)c).setBorderPainted( borderPainted );
|
||||||
|
|
||||||
|
if( c instanceof JCheckBox )
|
||||||
|
((JCheckBox)c).setBorderPaintedFlat( borderPainted );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void contentAreaFilledChanged() {
|
private void contentAreaFilledChanged() {
|
||||||
boolean contentAreaFilled = contentAreaFilledCheckBox.isSelected();
|
boolean contentAreaFilled = contentAreaFilledCheckBox.isSelected();
|
||||||
|
|
||||||
@@ -145,14 +161,11 @@ public class FlatComponentsTest
|
|||||||
JCheckBox checkBox4 = new JCheckBox();
|
JCheckBox checkBox4 = new JCheckBox();
|
||||||
JToggleButton toggleButton5 = new JToggleButton();
|
JToggleButton toggleButton5 = new JToggleButton();
|
||||||
JToggleButton toggleButton8 = new JToggleButton();
|
JToggleButton toggleButton8 = new JToggleButton();
|
||||||
buttonTypeComboBox = new JComboBox<>();
|
|
||||||
JLabel radioButtonLabel = new JLabel();
|
JLabel radioButtonLabel = new JLabel();
|
||||||
JRadioButton radioButton1 = new JRadioButton();
|
JRadioButton radioButton1 = new JRadioButton();
|
||||||
JRadioButton radioButton2 = new JRadioButton();
|
JRadioButton radioButton2 = new JRadioButton();
|
||||||
JRadioButton radioButton3 = new JRadioButton();
|
JRadioButton radioButton3 = new JRadioButton();
|
||||||
JRadioButton radioButton4 = new JRadioButton();
|
JRadioButton radioButton4 = new JRadioButton();
|
||||||
contentAreaFilledCheckBox = new JCheckBox();
|
|
||||||
roundRectCheckBox = new JCheckBox();
|
|
||||||
JLabel comboBoxLabel = new JLabel();
|
JLabel comboBoxLabel = new JLabel();
|
||||||
JComboBox<String> comboBox1 = new JComboBox<>();
|
JComboBox<String> comboBox1 = new JComboBox<>();
|
||||||
JComboBox<String> comboBox2 = new JComboBox<>();
|
JComboBox<String> comboBox2 = new JComboBox<>();
|
||||||
@@ -235,15 +248,20 @@ public class FlatComponentsTest
|
|||||||
JButton button10 = new JButton();
|
JButton button10 = new JButton();
|
||||||
JButton button11 = new JButton();
|
JButton button11 = new JButton();
|
||||||
JToggleButton toggleButton7 = new JToggleButton();
|
JToggleButton toggleButton7 = new JToggleButton();
|
||||||
|
JScrollPane scrollPane15 = new JScrollPane();
|
||||||
|
JPanel panel3 = new JPanel();
|
||||||
|
JButton button21 = new JButton();
|
||||||
|
JPanel panel5 = new JPanel();
|
||||||
|
buttonTypeComboBox = new JComboBox<>();
|
||||||
|
borderPaintedCheckBox = new JCheckBox();
|
||||||
|
roundRectCheckBox = new JCheckBox();
|
||||||
|
contentAreaFilledCheckBox = new JCheckBox();
|
||||||
JPanel panel4 = new JPanel();
|
JPanel panel4 = new JPanel();
|
||||||
noOutlineRadioButton = new JRadioButton();
|
noOutlineRadioButton = new JRadioButton();
|
||||||
errorOutlineRadioButton = new JRadioButton();
|
errorOutlineRadioButton = new JRadioButton();
|
||||||
warningOutlineRadioButton = new JRadioButton();
|
warningOutlineRadioButton = new JRadioButton();
|
||||||
magentaOutlineRadioButton = new JRadioButton();
|
magentaOutlineRadioButton = new JRadioButton();
|
||||||
magentaCyanOutlineRadioButton = new JRadioButton();
|
magentaCyanOutlineRadioButton = new JRadioButton();
|
||||||
JScrollPane scrollPane15 = new JScrollPane();
|
|
||||||
JPanel panel3 = new JPanel();
|
|
||||||
JButton button21 = new JButton();
|
|
||||||
JLabel scrollBarLabel = new JLabel();
|
JLabel scrollBarLabel = new JLabel();
|
||||||
JScrollBar scrollBar1 = new JScrollBar();
|
JScrollBar scrollBar1 = new JScrollBar();
|
||||||
JScrollBar scrollBar4 = new JScrollBar();
|
JScrollBar scrollBar4 = new JScrollBar();
|
||||||
@@ -530,17 +548,6 @@ public class FlatComponentsTest
|
|||||||
toggleButton8.setSelected(true);
|
toggleButton8.setSelected(true);
|
||||||
add(toggleButton8, "cell 5 3");
|
add(toggleButton8, "cell 5 3");
|
||||||
|
|
||||||
//---- buttonTypeComboBox ----
|
|
||||||
buttonTypeComboBox.setModel(new DefaultComboBoxModel<>(new String[] {
|
|
||||||
"-",
|
|
||||||
"square",
|
|
||||||
"roundRect",
|
|
||||||
"tab",
|
|
||||||
"help"
|
|
||||||
}));
|
|
||||||
buttonTypeComboBox.addActionListener(e -> buttonTypeChanged());
|
|
||||||
add(buttonTypeComboBox, "cell 6 3");
|
|
||||||
|
|
||||||
//---- radioButtonLabel ----
|
//---- radioButtonLabel ----
|
||||||
radioButtonLabel.setText("JRadioButton:");
|
radioButtonLabel.setText("JRadioButton:");
|
||||||
add(radioButtonLabel, "cell 0 4");
|
add(radioButtonLabel, "cell 0 4");
|
||||||
@@ -567,17 +574,6 @@ public class FlatComponentsTest
|
|||||||
radioButton4.setEnabled(false);
|
radioButton4.setEnabled(false);
|
||||||
add(radioButton4, "cell 4 4");
|
add(radioButton4, "cell 4 4");
|
||||||
|
|
||||||
//---- contentAreaFilledCheckBox ----
|
|
||||||
contentAreaFilledCheckBox.setText("contentAreaFilled");
|
|
||||||
contentAreaFilledCheckBox.setSelected(true);
|
|
||||||
contentAreaFilledCheckBox.addActionListener(e -> contentAreaFilledChanged());
|
|
||||||
add(contentAreaFilledCheckBox, "cell 5 4");
|
|
||||||
|
|
||||||
//---- roundRectCheckBox ----
|
|
||||||
roundRectCheckBox.setText("roundRect");
|
|
||||||
roundRectCheckBox.addActionListener(e -> roundRectChanged());
|
|
||||||
add(roundRectCheckBox, "cell 6 4");
|
|
||||||
|
|
||||||
//---- comboBoxLabel ----
|
//---- comboBoxLabel ----
|
||||||
comboBoxLabel.setText("JComboBox:");
|
comboBoxLabel.setText("JComboBox:");
|
||||||
add(comboBoxLabel, "cell 0 5");
|
add(comboBoxLabel, "cell 0 5");
|
||||||
@@ -1039,38 +1035,6 @@ public class FlatComponentsTest
|
|||||||
}
|
}
|
||||||
add(toolBar2, "cell 4 13 1 6,growy");
|
add(toolBar2, "cell 4 13 1 6,growy");
|
||||||
|
|
||||||
//======== panel4 ========
|
|
||||||
{
|
|
||||||
panel4.setLayout(new BoxLayout(panel4, BoxLayout.Y_AXIS));
|
|
||||||
|
|
||||||
//---- noOutlineRadioButton ----
|
|
||||||
noOutlineRadioButton.setText("no outline");
|
|
||||||
noOutlineRadioButton.setSelected(true);
|
|
||||||
noOutlineRadioButton.addActionListener(e -> outlineChanged());
|
|
||||||
panel4.add(noOutlineRadioButton);
|
|
||||||
|
|
||||||
//---- errorOutlineRadioButton ----
|
|
||||||
errorOutlineRadioButton.setText("error");
|
|
||||||
errorOutlineRadioButton.addActionListener(e -> outlineChanged());
|
|
||||||
panel4.add(errorOutlineRadioButton);
|
|
||||||
|
|
||||||
//---- warningOutlineRadioButton ----
|
|
||||||
warningOutlineRadioButton.setText("warning");
|
|
||||||
warningOutlineRadioButton.addActionListener(e -> outlineChanged());
|
|
||||||
panel4.add(warningOutlineRadioButton);
|
|
||||||
|
|
||||||
//---- magentaOutlineRadioButton ----
|
|
||||||
magentaOutlineRadioButton.setText("magenta");
|
|
||||||
magentaOutlineRadioButton.addActionListener(e -> outlineChanged());
|
|
||||||
panel4.add(magentaOutlineRadioButton);
|
|
||||||
|
|
||||||
//---- magentaCyanOutlineRadioButton ----
|
|
||||||
magentaCyanOutlineRadioButton.setText("magenta / cyan");
|
|
||||||
magentaCyanOutlineRadioButton.addActionListener(e -> outlineChanged());
|
|
||||||
panel4.add(magentaCyanOutlineRadioButton);
|
|
||||||
}
|
|
||||||
add(panel4, "cell 5 13");
|
|
||||||
|
|
||||||
//======== scrollPane15 ========
|
//======== scrollPane15 ========
|
||||||
{
|
{
|
||||||
scrollPane15.setBorder(BorderFactory.createEmptyBorder());
|
scrollPane15.setBorder(BorderFactory.createEmptyBorder());
|
||||||
@@ -1088,7 +1052,82 @@ public class FlatComponentsTest
|
|||||||
}
|
}
|
||||||
scrollPane15.setViewportView(panel3);
|
scrollPane15.setViewportView(panel3);
|
||||||
}
|
}
|
||||||
add(scrollPane15, "cell 6 13,growy,width 100,height 50");
|
add(scrollPane15, "cell 6 10 1 3,growy,width 100,height 50");
|
||||||
|
|
||||||
|
//======== panel5 ========
|
||||||
|
{
|
||||||
|
panel5.setBorder(new TitledBorder("Control"));
|
||||||
|
panel5.setLayout(new MigLayout(
|
||||||
|
"ltr,insets dialog,hidemode 3",
|
||||||
|
// columns
|
||||||
|
"[]" +
|
||||||
|
"[]",
|
||||||
|
// rows
|
||||||
|
"[]" +
|
||||||
|
"[]" +
|
||||||
|
"[]"));
|
||||||
|
|
||||||
|
//---- buttonTypeComboBox ----
|
||||||
|
buttonTypeComboBox.setModel(new DefaultComboBoxModel<>(new String[] {
|
||||||
|
"-",
|
||||||
|
"square",
|
||||||
|
"roundRect",
|
||||||
|
"tab",
|
||||||
|
"help"
|
||||||
|
}));
|
||||||
|
buttonTypeComboBox.addActionListener(e -> buttonTypeChanged());
|
||||||
|
panel5.add(buttonTypeComboBox, "cell 0 0");
|
||||||
|
|
||||||
|
//---- borderPaintedCheckBox ----
|
||||||
|
borderPaintedCheckBox.setText("borderPainted");
|
||||||
|
borderPaintedCheckBox.setSelected(true);
|
||||||
|
borderPaintedCheckBox.addActionListener(e -> borderPaintedChanged());
|
||||||
|
panel5.add(borderPaintedCheckBox, "cell 1 0");
|
||||||
|
|
||||||
|
//---- roundRectCheckBox ----
|
||||||
|
roundRectCheckBox.setText("roundRect");
|
||||||
|
roundRectCheckBox.addActionListener(e -> roundRectChanged());
|
||||||
|
panel5.add(roundRectCheckBox, "cell 0 1");
|
||||||
|
|
||||||
|
//---- contentAreaFilledCheckBox ----
|
||||||
|
contentAreaFilledCheckBox.setText("contentAreaFilled");
|
||||||
|
contentAreaFilledCheckBox.setSelected(true);
|
||||||
|
contentAreaFilledCheckBox.addActionListener(e -> contentAreaFilledChanged());
|
||||||
|
panel5.add(contentAreaFilledCheckBox, "cell 1 1");
|
||||||
|
|
||||||
|
//======== panel4 ========
|
||||||
|
{
|
||||||
|
panel4.setLayout(new BoxLayout(panel4, BoxLayout.Y_AXIS));
|
||||||
|
|
||||||
|
//---- noOutlineRadioButton ----
|
||||||
|
noOutlineRadioButton.setText("no outline");
|
||||||
|
noOutlineRadioButton.setSelected(true);
|
||||||
|
noOutlineRadioButton.addActionListener(e -> outlineChanged());
|
||||||
|
panel4.add(noOutlineRadioButton);
|
||||||
|
|
||||||
|
//---- errorOutlineRadioButton ----
|
||||||
|
errorOutlineRadioButton.setText("error");
|
||||||
|
errorOutlineRadioButton.addActionListener(e -> outlineChanged());
|
||||||
|
panel4.add(errorOutlineRadioButton);
|
||||||
|
|
||||||
|
//---- warningOutlineRadioButton ----
|
||||||
|
warningOutlineRadioButton.setText("warning");
|
||||||
|
warningOutlineRadioButton.addActionListener(e -> outlineChanged());
|
||||||
|
panel4.add(warningOutlineRadioButton);
|
||||||
|
|
||||||
|
//---- magentaOutlineRadioButton ----
|
||||||
|
magentaOutlineRadioButton.setText("magenta");
|
||||||
|
magentaOutlineRadioButton.addActionListener(e -> outlineChanged());
|
||||||
|
panel4.add(magentaOutlineRadioButton);
|
||||||
|
|
||||||
|
//---- magentaCyanOutlineRadioButton ----
|
||||||
|
magentaCyanOutlineRadioButton.setText("magenta / cyan");
|
||||||
|
magentaCyanOutlineRadioButton.addActionListener(e -> outlineChanged());
|
||||||
|
panel4.add(magentaCyanOutlineRadioButton);
|
||||||
|
}
|
||||||
|
panel5.add(panel4, "cell 0 2");
|
||||||
|
}
|
||||||
|
add(panel5, "cell 5 13 2 10,grow");
|
||||||
|
|
||||||
//---- scrollBarLabel ----
|
//---- scrollBarLabel ----
|
||||||
scrollBarLabel.setText("JScrollBar:");
|
scrollBarLabel.setText("JScrollBar:");
|
||||||
@@ -1235,11 +1274,11 @@ public class FlatComponentsTest
|
|||||||
toggleButton17.setSelected(true);
|
toggleButton17.setSelected(true);
|
||||||
toolBar1.add(toggleButton17);
|
toolBar1.add(toggleButton17);
|
||||||
}
|
}
|
||||||
add(toolBar1, "cell 1 23 2 1,growx");
|
add(toolBar1, "cell 1 23 5 1");
|
||||||
|
|
||||||
//---- label3 ----
|
//---- label3 ----
|
||||||
label3.setText("Square:");
|
label3.setText("Square:");
|
||||||
add(label3, "cell 3 23 3 1");
|
add(label3, "cell 1 23 5 1");
|
||||||
|
|
||||||
//======== toolBar3 ========
|
//======== toolBar3 ========
|
||||||
{
|
{
|
||||||
@@ -1266,11 +1305,11 @@ public class FlatComponentsTest
|
|||||||
toggleButton24.putClientProperty("JButton.buttonType", "square");
|
toggleButton24.putClientProperty("JButton.buttonType", "square");
|
||||||
toolBar3.add(toggleButton24);
|
toolBar3.add(toggleButton24);
|
||||||
}
|
}
|
||||||
add(toolBar3, "cell 3 23 3 1");
|
add(toolBar3, "cell 1 23 5 1");
|
||||||
|
|
||||||
//---- label4 ----
|
//---- label4 ----
|
||||||
label4.setText("Round:");
|
label4.setText("Round:");
|
||||||
add(label4, "cell 3 23 3 1");
|
add(label4, "cell 1 23 5 1");
|
||||||
|
|
||||||
//======== toolBar4 ========
|
//======== toolBar4 ========
|
||||||
{
|
{
|
||||||
@@ -1297,7 +1336,7 @@ public class FlatComponentsTest
|
|||||||
toggleButton26.putClientProperty("JButton.buttonType", "roundRect");
|
toggleButton26.putClientProperty("JButton.buttonType", "roundRect");
|
||||||
toolBar4.add(toggleButton26);
|
toolBar4.add(toggleButton26);
|
||||||
}
|
}
|
||||||
add(toolBar4, "cell 3 23 3 1");
|
add(toolBar4, "cell 1 23 5 1");
|
||||||
|
|
||||||
//---- buttonGroup1 ----
|
//---- buttonGroup1 ----
|
||||||
ButtonGroup buttonGroup1 = new ButtonGroup();
|
ButtonGroup buttonGroup1 = new ButtonGroup();
|
||||||
@@ -1315,12 +1354,13 @@ public class FlatComponentsTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
|
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
|
||||||
private JComboBox<String> buttonTypeComboBox;
|
|
||||||
private JCheckBox contentAreaFilledCheckBox;
|
|
||||||
private JCheckBox roundRectCheckBox;
|
|
||||||
private JTextField textField1;
|
private JTextField textField1;
|
||||||
private JProgressBar progressBar3;
|
private JProgressBar progressBar3;
|
||||||
private JProgressBar progressBar4;
|
private JProgressBar progressBar4;
|
||||||
|
private JComboBox<String> buttonTypeComboBox;
|
||||||
|
private JCheckBox borderPaintedCheckBox;
|
||||||
|
private JCheckBox roundRectCheckBox;
|
||||||
|
private JCheckBox contentAreaFilledCheckBox;
|
||||||
private JRadioButton noOutlineRadioButton;
|
private JRadioButton noOutlineRadioButton;
|
||||||
private JRadioButton errorOutlineRadioButton;
|
private JRadioButton errorOutlineRadioButton;
|
||||||
private JRadioButton warningOutlineRadioButton;
|
private JRadioButton warningOutlineRadioButton;
|
||||||
|
|||||||
@@ -296,23 +296,6 @@ new FormModel {
|
|||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 5 3"
|
"value": "cell 5 3"
|
||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JComboBox" ) {
|
|
||||||
name: "buttonTypeComboBox"
|
|
||||||
"model": new javax.swing.DefaultComboBoxModel {
|
|
||||||
selectedItem: "-"
|
|
||||||
addElement( "-" )
|
|
||||||
addElement( "square" )
|
|
||||||
addElement( "roundRect" )
|
|
||||||
addElement( "tab" )
|
|
||||||
addElement( "help" )
|
|
||||||
}
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "buttonTypeChanged", false ) )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 6 3"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "radioButtonLabel"
|
name: "radioButtonLabel"
|
||||||
"text": "JRadioButton:"
|
"text": "JRadioButton:"
|
||||||
@@ -349,27 +332,6 @@ new FormModel {
|
|||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 4 4"
|
"value": "cell 4 4"
|
||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JCheckBox" ) {
|
|
||||||
name: "contentAreaFilledCheckBox"
|
|
||||||
"text": "contentAreaFilled"
|
|
||||||
"selected": true
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "contentAreaFilledChanged", false ) )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 5 4"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JCheckBox" ) {
|
|
||||||
name: "roundRectCheckBox"
|
|
||||||
"text": "roundRect"
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "roundRectChanged", false ) )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 6 4"
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "comboBoxLabel"
|
name: "comboBoxLabel"
|
||||||
"text": "JComboBox:"
|
"text": "JComboBox:"
|
||||||
@@ -958,59 +920,6 @@ new FormModel {
|
|||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 4 13 1 6,growy"
|
"value": "cell 4 13 1 6,growy"
|
||||||
} )
|
} )
|
||||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class javax.swing.BoxLayout ) {
|
|
||||||
"axis": 1
|
|
||||||
} ) {
|
|
||||||
name: "panel4"
|
|
||||||
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
|
||||||
name: "noOutlineRadioButton"
|
|
||||||
"text": "no outline"
|
|
||||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
|
||||||
"selected": true
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
|
||||||
name: "errorOutlineRadioButton"
|
|
||||||
"text": "error"
|
|
||||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
|
||||||
name: "warningOutlineRadioButton"
|
|
||||||
"text": "warning"
|
|
||||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
|
||||||
name: "magentaOutlineRadioButton"
|
|
||||||
"text": "magenta"
|
|
||||||
"$buttonGroup": &FormReference0 new FormReference( "buttonGroup1" )
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
|
||||||
} )
|
|
||||||
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
|
||||||
name: "magentaCyanOutlineRadioButton"
|
|
||||||
"text": "magenta / cyan"
|
|
||||||
"$buttonGroup": #FormReference0
|
|
||||||
auxiliary() {
|
|
||||||
"JavaCodeGenerator.variableLocal": false
|
|
||||||
}
|
|
||||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
|
||||||
} )
|
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
|
||||||
"value": "cell 5 13"
|
|
||||||
} )
|
|
||||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||||
name: "scrollPane15"
|
name: "scrollPane15"
|
||||||
"border": new javax.swing.border.EmptyBorder( 0, 0, 0, 0 )
|
"border": new javax.swing.border.EmptyBorder( 0, 0, 0, 0 )
|
||||||
@@ -1027,7 +936,119 @@ new FormModel {
|
|||||||
} )
|
} )
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 6 13,growy,width 100,height 50"
|
"value": "cell 6 10 1 3,growy,width 100,height 50"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
|
||||||
|
"$columnConstraints": "[][]"
|
||||||
|
"$rowConstraints": "[][][]"
|
||||||
|
"$layoutConstraints": "ltr,insets dialog,hidemode 3"
|
||||||
|
} ) {
|
||||||
|
name: "panel5"
|
||||||
|
"border": new javax.swing.border.TitledBorder( "Control" )
|
||||||
|
add( new FormComponent( "javax.swing.JComboBox" ) {
|
||||||
|
name: "buttonTypeComboBox"
|
||||||
|
"model": new javax.swing.DefaultComboBoxModel {
|
||||||
|
selectedItem: "-"
|
||||||
|
addElement( "-" )
|
||||||
|
addElement( "square" )
|
||||||
|
addElement( "roundRect" )
|
||||||
|
addElement( "tab" )
|
||||||
|
addElement( "help" )
|
||||||
|
}
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "buttonTypeChanged", false ) )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 0"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JCheckBox" ) {
|
||||||
|
name: "borderPaintedCheckBox"
|
||||||
|
"text": "borderPainted"
|
||||||
|
"selected": true
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "borderPaintedChanged", false ) )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 0"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JCheckBox" ) {
|
||||||
|
name: "roundRectCheckBox"
|
||||||
|
"text": "roundRect"
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "roundRectChanged", false ) )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 1"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JCheckBox" ) {
|
||||||
|
name: "contentAreaFilledCheckBox"
|
||||||
|
"text": "contentAreaFilled"
|
||||||
|
"selected": true
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "contentAreaFilledChanged", false ) )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 1"
|
||||||
|
} )
|
||||||
|
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class javax.swing.BoxLayout ) {
|
||||||
|
"axis": 1
|
||||||
|
} ) {
|
||||||
|
name: "panel4"
|
||||||
|
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
||||||
|
name: "noOutlineRadioButton"
|
||||||
|
"text": "no outline"
|
||||||
|
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||||
|
"selected": true
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
||||||
|
name: "errorOutlineRadioButton"
|
||||||
|
"text": "error"
|
||||||
|
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
||||||
|
name: "warningOutlineRadioButton"
|
||||||
|
"text": "warning"
|
||||||
|
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
||||||
|
name: "magentaOutlineRadioButton"
|
||||||
|
"text": "magenta"
|
||||||
|
"$buttonGroup": &FormReference0 new FormReference( "buttonGroup1" )
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JRadioButton" ) {
|
||||||
|
name: "magentaCyanOutlineRadioButton"
|
||||||
|
"text": "magenta / cyan"
|
||||||
|
"$buttonGroup": #FormReference0
|
||||||
|
auxiliary() {
|
||||||
|
"JavaCodeGenerator.variableLocal": false
|
||||||
|
}
|
||||||
|
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "outlineChanged", false ) )
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 2"
|
||||||
|
} )
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 5 13 2 10,grow"
|
||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "scrollBarLabel"
|
name: "scrollBarLabel"
|
||||||
@@ -1231,13 +1252,13 @@ new FormModel {
|
|||||||
"selected": true
|
"selected": true
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 1 23 2 1,growx"
|
"value": "cell 1 23 5 1"
|
||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "label3"
|
name: "label3"
|
||||||
"text": "Square:"
|
"text": "Square:"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 3 23 3 1"
|
"value": "cell 1 23 5 1"
|
||||||
} )
|
} )
|
||||||
add( new FormContainer( "javax.swing.JToolBar", new FormLayoutManager( class javax.swing.JToolBar ) ) {
|
add( new FormContainer( "javax.swing.JToolBar", new FormLayoutManager( class javax.swing.JToolBar ) ) {
|
||||||
name: "toolBar3"
|
name: "toolBar3"
|
||||||
@@ -1264,13 +1285,13 @@ new FormModel {
|
|||||||
"$client.JButton.buttonType": "square"
|
"$client.JButton.buttonType": "square"
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 3 23 3 1"
|
"value": "cell 1 23 5 1"
|
||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "label4"
|
name: "label4"
|
||||||
"text": "Round:"
|
"text": "Round:"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 3 23 3 1"
|
"value": "cell 1 23 5 1"
|
||||||
} )
|
} )
|
||||||
add( new FormContainer( "javax.swing.JToolBar", new FormLayoutManager( class javax.swing.JToolBar ) ) {
|
add( new FormContainer( "javax.swing.JToolBar", new FormLayoutManager( class javax.swing.JToolBar ) ) {
|
||||||
name: "toolBar4"
|
name: "toolBar4"
|
||||||
@@ -1297,7 +1318,7 @@ new FormModel {
|
|||||||
"$client.JButton.buttonType": "roundRect"
|
"$client.JButton.buttonType": "roundRect"
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 3 23 3 1"
|
"value": "cell 1 23 5 1"
|
||||||
} )
|
} )
|
||||||
}, new FormLayoutConstraints( null ) {
|
}, new FormLayoutConstraints( null ) {
|
||||||
"location": new java.awt.Point( 0, 0 )
|
"location": new java.awt.Point( 0, 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user