Theme Editor: layout of "All" preview tab improvements:

- right align "enabled" and "focused" check boxes
- two columns for controls
- removed help button
- JTextArea, JEditorPane and JTextPane in single line
- reduced some vertical gaps
This commit is contained in:
Karl Tauber
2021-09-08 00:08:54 +02:00
parent fca0718ed0
commit b5f2f77944
2 changed files with 127 additions and 148 deletions

View File

@@ -210,6 +210,7 @@ class FlatThemePreviewAll
private void initComponents() { private void initComponents() {
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents
JPanel hSpacer1 = new JPanel(null);
enabledCheckBox = new JCheckBox(); enabledCheckBox = new JCheckBox();
focusedCheckBox = new JCheckBox(); focusedCheckBox = new JCheckBox();
JLabel labelLabel = new JLabel(); JLabel labelLabel = new JLabel();
@@ -218,20 +219,15 @@ class FlatThemePreviewAll
JLabel buttonLabel = new JLabel(); JLabel buttonLabel = new JLabel();
JButton button1 = new JButton(); JButton button1 = new JButton();
FlatThemePreviewAll.PreviewDefaultButton testDefaultButton1 = new FlatThemePreviewAll.PreviewDefaultButton(); FlatThemePreviewAll.PreviewDefaultButton testDefaultButton1 = new FlatThemePreviewAll.PreviewDefaultButton();
FlatButton helpButton = new FlatButton();
JPanel hSpacer2 = new JPanel(null);
JLabel toggleButtonLabel = new JLabel(); JLabel toggleButtonLabel = new JLabel();
JToggleButton toggleButton1 = new JToggleButton(); JToggleButton toggleButton1 = new JToggleButton();
JToggleButton toggleButton3 = new JToggleButton(); JToggleButton toggleButton3 = new JToggleButton();
JPanel hSpacer1 = new JPanel(null);
JLabel checkBoxLabel = new JLabel(); JLabel checkBoxLabel = new JLabel();
JCheckBox checkBox1 = new JCheckBox(); JCheckBox checkBox1 = new JCheckBox();
JCheckBox checkBox3 = new JCheckBox(); JCheckBox checkBox3 = new JCheckBox();
JPanel hSpacer3 = new JPanel(null);
JLabel radioButtonLabel = new JLabel(); JLabel radioButtonLabel = new JLabel();
JRadioButton radioButton1 = new JRadioButton(); JRadioButton radioButton1 = new JRadioButton();
JRadioButton radioButton3 = new JRadioButton(); JRadioButton radioButton3 = new JRadioButton();
JPanel hSpacer4 = new JPanel(null);
JLabel comboBoxLabel = new JLabel(); JLabel comboBoxLabel = new JLabel();
FlatComboBox<String> comboBox1 = new FlatComboBox<>(); FlatComboBox<String> comboBox1 = new FlatComboBox<>();
JComboBox<String> comboBox3 = new JComboBox<>(); JComboBox<String> comboBox3 = new JComboBox<>();
@@ -285,6 +281,7 @@ class FlatThemePreviewAll
JButton button6 = new JButton(); JButton button6 = new JButton();
JToggleButton button7 = new JToggleButton(); JToggleButton button7 = new JToggleButton();
JToggleButton button8 = new JToggleButton(); JToggleButton button8 = new JToggleButton();
JToggleButton button9 = new JToggleButton();
JLabel tabbedPaneLabel = new JLabel(); JLabel tabbedPaneLabel = new JLabel();
tabbedPane1 = new FlatThemePreviewAll.PreviewTabbedPane(); tabbedPane1 = new FlatThemePreviewAll.PreviewTabbedPane();
JLabel listTreeLabel = new JLabel(); JLabel listTreeLabel = new JLabel();
@@ -306,15 +303,10 @@ class FlatThemePreviewAll
"insets dialog,hidemode 3", "insets dialog,hidemode 3",
// columns // columns
"[fill]" + "[fill]" +
"[130,fill]", "[60,sizegroup 1,fill]" +
"[60,sizegroup 1,fill]",
// rows // rows
"[]unrel" + "[]para" +
"[]" +
"[]" +
"[]" +
"[]" +
"[]" +
"[]" +
"[]" + "[]" +
"[]" + "[]" +
"[]" + "[]" +
@@ -324,9 +316,14 @@ class FlatThemePreviewAll
"[]" + "[]" +
"[]" + "[]" +
"[]" + "[]" +
"[fill]" +
"[]" +
"[]4" +
"[]" + "[]" +
"[]" + "[]" +
"[]0" +
"[]" + "[]" +
"[]0" +
"[]" + "[]" +
"[]" + "[]" +
"[]" + "[]" +
@@ -335,17 +332,18 @@ class FlatThemePreviewAll
"[]" + "[]" +
"[100,fill]" + "[100,fill]" +
"[grow]")); "[grow]"));
add(hSpacer1, "cell 0 0 3 1,growx");
//---- enabledCheckBox ---- //---- enabledCheckBox ----
enabledCheckBox.setText("Enabled"); enabledCheckBox.setText("Enabled");
enabledCheckBox.setSelected(true); enabledCheckBox.setSelected(true);
enabledCheckBox.addActionListener(e -> enabledChanged()); enabledCheckBox.addActionListener(e -> enabledChanged());
add(enabledCheckBox, "cell 0 0 2 1,alignx left,growx 0"); add(enabledCheckBox, "cell 0 0 3 1");
//---- focusedCheckBox ---- //---- focusedCheckBox ----
focusedCheckBox.setText("Focused"); focusedCheckBox.setText("Focused");
focusedCheckBox.addActionListener(e -> focusedChanged()); focusedCheckBox.addActionListener(e -> focusedChanged());
add(focusedCheckBox, "cell 0 0 2 1"); add(focusedCheckBox, "cell 0 0 3 1");
//---- labelLabel ---- //---- labelLabel ----
labelLabel.setText("JLabel:"); labelLabel.setText("JLabel:");
@@ -353,7 +351,7 @@ class FlatThemePreviewAll
//---- label1 ---- //---- label1 ----
label1.setText("Some Text"); label1.setText("Some Text");
add(label1, "cell 1 1"); add(label1, "cell 1 1 2 1");
//---- flatButton1 ---- //---- flatButton1 ----
flatButton1.setText("Help"); flatButton1.setText("Help");
@@ -367,16 +365,11 @@ class FlatThemePreviewAll
//---- button1 ---- //---- button1 ----
button1.setText("OK"); button1.setText("OK");
add(button1, "cell 1 2,alignx left,growx 0"); add(button1, "cell 1 2");
//---- testDefaultButton1 ---- //---- testDefaultButton1 ----
testDefaultButton1.setText("Default"); testDefaultButton1.setText("Default");
add(testDefaultButton1, "cell 1 2"); add(testDefaultButton1, "cell 2 2");
//---- helpButton ----
helpButton.setButtonType(FlatButton.ButtonType.help);
add(helpButton, "cell 1 2");
add(hSpacer2, "cell 1 2");
//---- toggleButtonLabel ---- //---- toggleButtonLabel ----
toggleButtonLabel.setText("JToggleButton:"); toggleButtonLabel.setText("JToggleButton:");
@@ -384,13 +377,12 @@ class FlatThemePreviewAll
//---- toggleButton1 ---- //---- toggleButton1 ----
toggleButton1.setText("Unselected"); toggleButton1.setText("Unselected");
add(toggleButton1, "cell 1 3,alignx left,growx 0"); add(toggleButton1, "cell 1 3");
//---- toggleButton3 ---- //---- toggleButton3 ----
toggleButton3.setText("Selected"); toggleButton3.setText("Selected");
toggleButton3.setSelected(true); toggleButton3.setSelected(true);
add(toggleButton3, "cell 1 3"); add(toggleButton3, "cell 2 3");
add(hSpacer1, "cell 1 3");
//---- checkBoxLabel ---- //---- checkBoxLabel ----
checkBoxLabel.setText("JCheckBox"); checkBoxLabel.setText("JCheckBox");
@@ -403,8 +395,7 @@ class FlatThemePreviewAll
//---- checkBox3 ---- //---- checkBox3 ----
checkBox3.setText("Selected"); checkBox3.setText("Selected");
checkBox3.setSelected(true); checkBox3.setSelected(true);
add(checkBox3, "cell 1 4,alignx left,growx 0"); add(checkBox3, "cell 2 4,alignx left,growx 0");
add(hSpacer3, "cell 1 4");
//---- radioButtonLabel ---- //---- radioButtonLabel ----
radioButtonLabel.setText("JRadioButton:"); radioButtonLabel.setText("JRadioButton:");
@@ -417,8 +408,7 @@ class FlatThemePreviewAll
//---- radioButton3 ---- //---- radioButton3 ----
radioButton3.setText("Selected"); radioButton3.setText("Selected");
radioButton3.setSelected(true); radioButton3.setSelected(true);
add(radioButton3, "cell 1 5,alignx left,growx 0"); add(radioButton3, "cell 2 5,alignx left,growx 0");
add(hSpacer4, "cell 1 5");
//---- comboBoxLabel ---- //---- comboBoxLabel ----
comboBoxLabel.setText("JComboBox:"); comboBoxLabel.setText("JComboBox:");
@@ -442,7 +432,7 @@ class FlatThemePreviewAll
})); }));
comboBox1.setMaximumRowCount(6); comboBox1.setMaximumRowCount(6);
comboBox1.setPlaceholderText("placeholder text"); comboBox1.setPlaceholderText("placeholder text");
add(comboBox1, "cell 1 6,width 50"); add(comboBox1, "cell 1 6");
//---- comboBox3 ---- //---- comboBox3 ----
comboBox3.setModel(new DefaultComboBoxModel<>(new String[] { comboBox3.setModel(new DefaultComboBoxModel<>(new String[] {
@@ -460,12 +450,12 @@ class FlatThemePreviewAll
"kkk" "kkk"
})); }));
comboBox3.setMaximumRowCount(6); comboBox3.setMaximumRowCount(6);
add(comboBox3, "cell 1 6,width 50"); add(comboBox3, "cell 2 6");
//---- spinnerLabel ---- //---- spinnerLabel ----
spinnerLabel.setText("JSpinner:"); spinnerLabel.setText("JSpinner:");
add(spinnerLabel, "cell 0 7"); add(spinnerLabel, "cell 0 7");
add(spinner1, "cell 1 7"); add(spinner1, "cell 1 7 2 1");
//---- textFieldLabel ---- //---- textFieldLabel ----
textFieldLabel.setText("<html>JTextField:<br>JFormattedTextF.:<br>JPasswordField:</html>"); textFieldLabel.setText("<html>JTextField:<br>JFormattedTextF.:<br>JPasswordField:</html>");
@@ -474,21 +464,21 @@ class FlatThemePreviewAll
//---- textField1 ---- //---- textField1 ----
textField1.setText("Some Text"); textField1.setText("Some Text");
textField1.setPlaceholderText("placeholder text"); textField1.setPlaceholderText("placeholder text");
add(textField1, "cell 1 8"); add(textField1, "cell 1 8 2 1");
//---- formattedTextField1 ---- //---- formattedTextField1 ----
formattedTextField1.setText("Some Text"); formattedTextField1.setText("Some Text");
formattedTextField1.setPlaceholderText("placeholder text"); formattedTextField1.setPlaceholderText("placeholder text");
add(formattedTextField1, "cell 1 9,width 50"); add(formattedTextField1, "cell 1 9");
//---- passwordField1 ---- //---- passwordField1 ----
passwordField1.setText("Some Text"); passwordField1.setText("Some Text");
passwordField1.setPlaceholderText("placeholder text"); passwordField1.setPlaceholderText("placeholder text");
add(passwordField1, "cell 1 9,width 50"); add(passwordField1, "cell 2 9");
//---- textAreaLabel ---- //---- textAreaLabel ----
textAreaLabel.setText("<html>JTextArea:<br><br>JEditorPane:<br>JTextPane:</html>"); textAreaLabel.setText("<html>JTextArea:<br>JEditorPane:<br>JTextPane:</html>");
add(textAreaLabel, "cell 0 10 1 2"); add(textAreaLabel, "cell 0 10");
//======== scrollPane1 ======== //======== scrollPane1 ========
{ {
@@ -496,11 +486,11 @@ class FlatThemePreviewAll
scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textArea1 ---- //---- textArea1 ----
textArea1.setText("Some Text"); textArea1.setText("Text");
textArea1.setRows(2); textArea1.setRows(2);
scrollPane1.setViewportView(textArea1); scrollPane1.setViewportView(textArea1);
} }
add(scrollPane1, "cell 1 10"); add(scrollPane1, "cell 1 10 2 1,width 40");
//======== scrollPane5 ======== //======== scrollPane5 ========
{ {
@@ -508,10 +498,10 @@ class FlatThemePreviewAll
scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane5.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- editorPane1 ---- //---- editorPane1 ----
editorPane1.setText("Some Text"); editorPane1.setText("Text");
scrollPane5.setViewportView(editorPane1); scrollPane5.setViewportView(editorPane1);
} }
add(scrollPane5, "cell 1 11,width 50"); add(scrollPane5, "cell 1 10 2 1,width 40");
//======== scrollPane9 ======== //======== scrollPane9 ========
{ {
@@ -519,14 +509,14 @@ class FlatThemePreviewAll
scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane9.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
//---- textPane1 ---- //---- textPane1 ----
textPane1.setText("Some Text"); textPane1.setText("Text");
scrollPane9.setViewportView(textPane1); scrollPane9.setViewportView(textPane1);
} }
add(scrollPane9, "cell 1 11,width 50"); add(scrollPane9, "cell 1 10 2 1,width 40");
//---- menuBarLabel ---- //---- menuBarLabel ----
menuBarLabel.setText("JMenuBar:"); menuBarLabel.setText("JMenuBar:");
add(menuBarLabel, "cell 0 12"); add(menuBarLabel, "cell 0 11");
//---- menuUnderlineSelectionButton ---- //---- menuUnderlineSelectionButton ----
menuUnderlineSelectionButton.setText("_"); menuUnderlineSelectionButton.setText("_");
@@ -535,7 +525,7 @@ class FlatThemePreviewAll
menuUnderlineSelectionButton.setFocusable(false); menuUnderlineSelectionButton.setFocusable(false);
menuUnderlineSelectionButton.setFont(menuUnderlineSelectionButton.getFont().deriveFont(menuUnderlineSelectionButton.getFont().getSize() - 2f)); menuUnderlineSelectionButton.setFont(menuUnderlineSelectionButton.getFont().deriveFont(menuUnderlineSelectionButton.getFont().getSize() - 2f));
menuUnderlineSelectionButton.addActionListener(e -> menuUnderlineSelectionChanged()); menuUnderlineSelectionButton.addActionListener(e -> menuUnderlineSelectionChanged());
add(menuUnderlineSelectionButton, "cell 0 12"); add(menuUnderlineSelectionButton, "cell 0 11");
//======== menuBar1 ======== //======== menuBar1 ========
{ {
@@ -613,33 +603,33 @@ class FlatThemePreviewAll
} }
menuBar1.add(menu3); menuBar1.add(menu3);
} }
add(menuBar1, "cell 1 12"); add(menuBar1, "cell 1 11 2 1");
//---- scrollBarLabel ---- //---- scrollBarLabel ----
scrollBarLabel.setText("JScrollBar:"); scrollBarLabel.setText("JScrollBar:");
add(scrollBarLabel, "cell 0 13"); add(scrollBarLabel, "cell 0 12 1 2,aligny top,growy 0");
//---- scrollBar1 ---- //---- scrollBar1 ----
scrollBar1.setOrientation(Adjustable.HORIZONTAL); scrollBar1.setOrientation(Adjustable.HORIZONTAL);
add(scrollBar1, "cell 1 13"); add(scrollBar1, "cell 1 12 2 1");
//---- scrollBar5 ---- //---- scrollBar5 ----
scrollBar5.setOrientation(Adjustable.HORIZONTAL); scrollBar5.setOrientation(Adjustable.HORIZONTAL);
scrollBar5.setShowButtons(true); scrollBar5.setShowButtons(true);
add(scrollBar5, "cell 1 14"); add(scrollBar5, "cell 1 13 2 1");
//---- separatorLabel ---- //---- separatorLabel ----
separatorLabel.setText("JSeparator:"); separatorLabel.setText("JSeparator:");
add(separatorLabel, "cell 0 15"); add(separatorLabel, "cell 0 14");
add(separator1, "cell 1 15"); add(separator1, "cell 1 14 2 1");
//---- sliderLabel ---- //---- sliderLabel ----
sliderLabel.setText("JSlider:"); sliderLabel.setText("JSlider:");
add(sliderLabel, "cell 0 16"); add(sliderLabel, "cell 0 15");
//---- slider1 ---- //---- slider1 ----
slider1.setValue(30); slider1.setValue(30);
add(slider1, "cell 1 16"); add(slider1, "cell 1 15 2 1,width 100");
//---- slider3 ---- //---- slider3 ----
slider3.setMinorTickSpacing(10); slider3.setMinorTickSpacing(10);
@@ -648,32 +638,32 @@ class FlatThemePreviewAll
slider3.setPaintLabels(true); slider3.setPaintLabels(true);
slider3.setValue(30); slider3.setValue(30);
slider3.addChangeListener(e -> changeProgress()); slider3.addChangeListener(e -> changeProgress());
add(slider3, "cell 1 17"); add(slider3, "cell 1 16 2 1,width 100");
//---- progressBarLabel ---- //---- progressBarLabel ----
progressBarLabel.setText("JProgressBar:"); progressBarLabel.setText("JProgressBar:");
add(progressBarLabel, "cell 0 18"); add(progressBarLabel, "cell 0 17");
//---- progressBar1 ---- //---- progressBar1 ----
progressBar1.setValue(60); progressBar1.setValue(60);
add(progressBar1, "cell 1 18"); add(progressBar1, "cell 1 17 2 1");
//---- progressBar2 ---- //---- progressBar2 ----
progressBar2.setValue(50); progressBar2.setValue(50);
progressBar2.setStringPainted(true); progressBar2.setStringPainted(true);
add(progressBar2, "cell 1 19"); add(progressBar2, "cell 1 18 2 1");
//---- toolTipLabel ---- //---- toolTipLabel ----
toolTipLabel.setText("JToolTip:"); toolTipLabel.setText("JToolTip:");
add(toolTipLabel, "cell 0 20"); add(toolTipLabel, "cell 0 19");
//---- toolTip1 ---- //---- toolTip1 ----
toolTip1.setTipText("Some text in tool tip."); toolTip1.setTipText("Some text in tool tip.");
add(toolTip1, "cell 1 20,alignx left,growx 0"); add(toolTip1, "cell 1 19 2 1,alignx left,growx 0");
//---- toolBarLabel ---- //---- toolBarLabel ----
toolBarLabel.setText("JToolBar:"); toolBarLabel.setText("JToolBar:");
add(toolBarLabel, "cell 0 21"); add(toolBarLabel, "cell 0 20");
//======== toolBar1 ======== //======== toolBar1 ========
{ {
@@ -695,17 +685,22 @@ class FlatThemePreviewAll
button8.setIcon(UIManager.getIcon("Tree.leafIcon")); button8.setIcon(UIManager.getIcon("Tree.leafIcon"));
button8.setSelected(true); button8.setSelected(true);
toolBar1.add(button8); toolBar1.add(button8);
//---- button9 ----
button9.setIcon(UIManager.getIcon("Tree.leafIcon"));
button9.setSelected(true);
toolBar1.add(button9);
} }
add(toolBar1, "cell 1 21"); add(toolBar1, "cell 1 20 2 1");
//---- tabbedPaneLabel ---- //---- tabbedPaneLabel ----
tabbedPaneLabel.setText("JTabbedPane:"); tabbedPaneLabel.setText("JTabbedPane:");
add(tabbedPaneLabel, "cell 0 22"); add(tabbedPaneLabel, "cell 0 21");
add(tabbedPane1, "cell 1 22"); add(tabbedPane1, "cell 1 21 2 1");
//---- listTreeLabel ---- //---- listTreeLabel ----
listTreeLabel.setText("<html>JList / JTree:<br>JSplitPane:</html>"); listTreeLabel.setText("<html>JList / JTree:<br>JSplitPane:</html>");
add(listTreeLabel, "cell 0 23,aligny top,growy 0"); add(listTreeLabel, "cell 0 22,aligny top,growy 0");
//======== splitPane1 ======== //======== splitPane1 ========
{ {
@@ -748,11 +743,11 @@ class FlatThemePreviewAll
} }
splitPane1.setRightComponent(scrollPane3); splitPane1.setRightComponent(scrollPane3);
} }
add(splitPane1, "cell 1 23,height 50"); add(splitPane1, "cell 1 22 2 1,height 50");
//---- tableLabel ---- //---- tableLabel ----
tableLabel.setText("JTable:"); tableLabel.setText("JTable:");
add(tableLabel, "cell 0 24"); add(tableLabel, "cell 0 23");
//======== scrollPane4 ======== //======== scrollPane4 ========
{ {
@@ -769,11 +764,11 @@ class FlatThemePreviewAll
)); ));
scrollPane4.setViewportView(table1); scrollPane4.setViewportView(table1);
} }
add(scrollPane4, "cell 1 24,height 70"); add(scrollPane4, "cell 1 23 2 1,width 100,height 70");
//---- internalFrameLabel ---- //---- internalFrameLabel ----
internalFrameLabel.setText("<html>JDesktopPane:<br>JInternalFrame:</html>"); internalFrameLabel.setText("<html>JDesktopPane:<br>JInternalFrame:</html>");
add(internalFrameLabel, "cell 0 25,aligny top,growy 0"); add(internalFrameLabel, "cell 0 24,aligny top,growy 0");
//======== desktopPane1 ======== //======== desktopPane1 ========
{ {
@@ -806,7 +801,7 @@ class FlatThemePreviewAll
desktopPane1.add(internalFrame2, JLayeredPane.DEFAULT_LAYER); desktopPane1.add(internalFrame2, JLayeredPane.DEFAULT_LAYER);
internalFrame2.setBounds(new Rectangle(new Point(5, 50), internalFrame2.getPreferredSize())); internalFrame2.setBounds(new Rectangle(new Point(5, 50), internalFrame2.getPreferredSize()));
} }
add(desktopPane1, "cell 1 25"); add(desktopPane1, "cell 1 24 2 1");
//---- buttonGroup1 ---- //---- buttonGroup1 ----
ButtonGroup buttonGroup1 = new ButtonGroup(); ButtonGroup buttonGroup1 = new ButtonGroup();

View File

@@ -1,4 +1,4 @@
JFDML JFormDesigner: "7.0.4.0.360" Java: "16" encoding: "UTF-8" JFDML JFormDesigner: "999.9.9.9.9999" Java: "1.8.0_202" encoding: "UTF-8"
new FormModel { new FormModel {
contentType: "form/swing" contentType: "form/swing"
@@ -8,10 +8,15 @@ new FormModel {
} }
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) { add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class net.miginfocom.swing.MigLayout ) {
"$layoutConstraints": "insets dialog,hidemode 3" "$layoutConstraints": "insets dialog,hidemode 3"
"$columnConstraints": "[fill][130,fill]" "$columnConstraints": "[fill][60,sizegroup 1,fill][60,sizegroup 1,fill]"
"$rowConstraints": "[]unrel[][][][][][][][][][][][][][][][][][][][][][][][][100,fill][grow]" "$rowConstraints": "[]para[][][][][][][][][][fill][][]4[][][]0[][]0[][][][][][][100,fill][grow]"
} ) { } ) {
name: "this" name: "this"
add( new FormComponent( "com.jformdesigner.designer.wrapper.HSpacer" ) {
name: "hSpacer1"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 0 3 1,growx"
} )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "enabledCheckBox" name: "enabledCheckBox"
"text": "Enabled" "text": "Enabled"
@@ -21,7 +26,7 @@ new FormModel {
} }
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "enabledChanged", false ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "enabledChanged", false ) )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 0 2 1,alignx left,growx 0" "value": "cell 0 0 3 1"
} ) } )
add( new FormComponent( "javax.swing.JCheckBox" ) { add( new FormComponent( "javax.swing.JCheckBox" ) {
name: "focusedCheckBox" name: "focusedCheckBox"
@@ -31,7 +36,7 @@ new FormModel {
} }
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "focusedChanged", false ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "focusedChanged", false ) )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 0 2 1" "value": "cell 0 0 3 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "labelLabel" name: "labelLabel"
@@ -43,7 +48,7 @@ new FormModel {
name: "label1" name: "label1"
"text": "Some Text" "text": "Some Text"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 1" "value": "cell 1 1 2 1"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatButton" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatButton" ) {
name: "flatButton1" name: "flatButton1"
@@ -63,24 +68,13 @@ new FormModel {
name: "button1" name: "button1"
"text": "OK" "text": "OK"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2,alignx left,growx 0" "value": "cell 1 2"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.themeeditor.FlatThemePreviewAll$PreviewDefaultButton" ) { add( new FormComponent( "com.formdev.flatlaf.themeeditor.FlatThemePreviewAll$PreviewDefaultButton" ) {
name: "testDefaultButton1" name: "testDefaultButton1"
"text": "Default" "text": "Default"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2" "value": "cell 2 2"
} )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatButton" ) {
name: "helpButton"
"buttonType": enum com.formdev.flatlaf.extras.components.FlatButton$ButtonType help
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2"
} )
add( new FormComponent( "com.jformdesigner.designer.wrapper.HSpacer" ) {
name: "hSpacer2"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 2"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "toggleButtonLabel" name: "toggleButtonLabel"
@@ -92,19 +86,14 @@ new FormModel {
name: "toggleButton1" name: "toggleButton1"
"text": "Unselected" "text": "Unselected"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 3,alignx left,growx 0" "value": "cell 1 3"
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) { add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "toggleButton3" name: "toggleButton3"
"text": "Selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 3" "value": "cell 2 3"
} )
add( new FormComponent( "com.jformdesigner.designer.wrapper.HSpacer" ) {
name: "hSpacer1"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 3"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "checkBoxLabel" name: "checkBoxLabel"
@@ -123,12 +112,7 @@ new FormModel {
"text": "Selected" "text": "Selected"
"selected": true "selected": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 4,alignx left,growx 0" "value": "cell 2 4,alignx left,growx 0"
} )
add( new FormComponent( "com.jformdesigner.designer.wrapper.HSpacer" ) {
name: "hSpacer3"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 4"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "radioButtonLabel" name: "radioButtonLabel"
@@ -149,12 +133,7 @@ new FormModel {
"selected": true "selected": true
"$buttonGroup": new FormReference( "buttonGroup1" ) "$buttonGroup": new FormReference( "buttonGroup1" )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 5,alignx left,growx 0" "value": "cell 2 5,alignx left,growx 0"
} )
add( new FormComponent( "com.jformdesigner.designer.wrapper.HSpacer" ) {
name: "hSpacer4"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 5"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "comboBoxLabel" name: "comboBoxLabel"
@@ -186,7 +165,7 @@ new FormModel {
"JavaCodeGenerator.typeParameters": "String" "JavaCodeGenerator.typeParameters": "String"
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 6,width 50" "value": "cell 1 6"
} ) } )
add( new FormComponent( "javax.swing.JComboBox" ) { add( new FormComponent( "javax.swing.JComboBox" ) {
name: "comboBox3" name: "comboBox3"
@@ -207,7 +186,7 @@ new FormModel {
} }
"maximumRowCount": 6 "maximumRowCount": 6
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 6,width 50" "value": "cell 2 6"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "spinnerLabel" name: "spinnerLabel"
@@ -218,7 +197,7 @@ new FormModel {
add( new FormComponent( "javax.swing.JSpinner" ) { add( new FormComponent( "javax.swing.JSpinner" ) {
name: "spinner1" name: "spinner1"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 7" "value": "cell 1 7 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "textFieldLabel" name: "textFieldLabel"
@@ -234,27 +213,27 @@ new FormModel {
"JavaCodeGenerator.variableLocal": false "JavaCodeGenerator.variableLocal": false
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 8" "value": "cell 1 8 2 1"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatFormattedTextField" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatFormattedTextField" ) {
name: "formattedTextField1" name: "formattedTextField1"
"text": "Some Text" "text": "Some Text"
"placeholderText": "placeholder text" "placeholderText": "placeholder text"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 9,width 50" "value": "cell 1 9"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatPasswordField" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatPasswordField" ) {
name: "passwordField1" name: "passwordField1"
"text": "Some Text" "text": "Some Text"
"placeholderText": "placeholder text" "placeholderText": "placeholder text"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 9,width 50" "value": "cell 2 9"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "textAreaLabel" name: "textAreaLabel"
"text": "<html>JTextArea:<br><br>JEditorPane:<br>JTextPane:</html>" "text": "<html>JTextArea:<br>JEditorPane:<br>JTextPane:</html>"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 10 1 2" "value": "cell 0 10"
} ) } )
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: "scrollPane1" name: "scrollPane1"
@@ -262,11 +241,11 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextArea" ) { add( new FormComponent( "javax.swing.JTextArea" ) {
name: "textArea1" name: "textArea1"
"text": "Some Text" "text": "Text"
"rows": 2 "rows": 2
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 10" "value": "cell 1 10 2 1,width 40"
} ) } )
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: "scrollPane5" name: "scrollPane5"
@@ -274,10 +253,10 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JEditorPane" ) { add( new FormComponent( "javax.swing.JEditorPane" ) {
name: "editorPane1" name: "editorPane1"
"text": "Some Text" "text": "Text"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 11,width 50" "value": "cell 1 10 2 1,width 40"
} ) } )
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: "scrollPane9" name: "scrollPane9"
@@ -285,16 +264,16 @@ new FormModel {
"horizontalScrollBarPolicy": 31 "horizontalScrollBarPolicy": 31
add( new FormComponent( "javax.swing.JTextPane" ) { add( new FormComponent( "javax.swing.JTextPane" ) {
name: "textPane1" name: "textPane1"
"text": "Some Text" "text": "Text"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 11,width 50" "value": "cell 1 10 2 1,width 40"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "menuBarLabel" name: "menuBarLabel"
"text": "JMenuBar:" "text": "JMenuBar:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 12" "value": "cell 0 11"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatToggleButton" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatToggleButton" ) {
name: "menuUnderlineSelectionButton" name: "menuUnderlineSelectionButton"
@@ -308,7 +287,7 @@ new FormModel {
} }
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "menuUnderlineSelectionChanged", false ) ) addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "menuUnderlineSelectionChanged", false ) )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 12" "value": "cell 0 11"
} ) } )
add( new FormContainer( "javax.swing.JMenuBar", new FormLayoutManager( class javax.swing.JMenuBar ) ) { add( new FormContainer( "javax.swing.JMenuBar", new FormLayoutManager( class javax.swing.JMenuBar ) ) {
name: "menuBar1" name: "menuBar1"
@@ -389,43 +368,43 @@ new FormModel {
} ) } )
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 12" "value": "cell 1 11 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "scrollBarLabel" name: "scrollBarLabel"
"text": "JScrollBar:" "text": "JScrollBar:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 13" "value": "cell 0 12 1 2,aligny top,growy 0"
} ) } )
add( new FormComponent( "javax.swing.JScrollBar" ) { add( new FormComponent( "javax.swing.JScrollBar" ) {
name: "scrollBar1" name: "scrollBar1"
"orientation": 0 "orientation": 0
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 13" "value": "cell 1 12 2 1"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatScrollBar" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatScrollBar" ) {
name: "scrollBar5" name: "scrollBar5"
"orientation": 0 "orientation": 0
"showButtons": true "showButtons": true
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 14" "value": "cell 1 13 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "separatorLabel" name: "separatorLabel"
"text": "JSeparator:" "text": "JSeparator:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 15" "value": "cell 0 14"
} ) } )
add( new FormComponent( "javax.swing.JSeparator" ) { add( new FormComponent( "javax.swing.JSeparator" ) {
name: "separator1" name: "separator1"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 15" "value": "cell 1 14 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "sliderLabel" name: "sliderLabel"
"text": "JSlider:" "text": "JSlider:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 16" "value": "cell 0 15"
} ) } )
add( new FormComponent( "javax.swing.JSlider" ) { add( new FormComponent( "javax.swing.JSlider" ) {
name: "slider1" name: "slider1"
@@ -434,7 +413,7 @@ new FormModel {
"JavaCodeGenerator.variableLocal": false "JavaCodeGenerator.variableLocal": false
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 16" "value": "cell 1 15 2 1,width 100"
} ) } )
add( new FormComponent( "javax.swing.JSlider" ) { add( new FormComponent( "javax.swing.JSlider" ) {
name: "slider3" name: "slider3"
@@ -448,13 +427,13 @@ new FormModel {
} }
addEvent( new FormEvent( "javax.swing.event.ChangeListener", "stateChanged", "changeProgress", false ) ) addEvent( new FormEvent( "javax.swing.event.ChangeListener", "stateChanged", "changeProgress", false ) )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 17" "value": "cell 1 16 2 1,width 100"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "progressBarLabel" name: "progressBarLabel"
"text": "JProgressBar:" "text": "JProgressBar:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 18" "value": "cell 0 17"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatProgressBar" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatProgressBar" ) {
name: "progressBar1" name: "progressBar1"
@@ -463,7 +442,7 @@ new FormModel {
"JavaCodeGenerator.variableLocal": false "JavaCodeGenerator.variableLocal": false
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 18" "value": "cell 1 17 2 1"
} ) } )
add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatProgressBar" ) { add( new FormComponent( "com.formdev.flatlaf.extras.components.FlatProgressBar" ) {
name: "progressBar2" name: "progressBar2"
@@ -473,25 +452,25 @@ new FormModel {
"JavaCodeGenerator.variableLocal": false "JavaCodeGenerator.variableLocal": false
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 19" "value": "cell 1 18 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "toolTipLabel" name: "toolTipLabel"
"text": "JToolTip:" "text": "JToolTip:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 20" "value": "cell 0 19"
} ) } )
add( new FormComponent( "javax.swing.JToolTip" ) { add( new FormComponent( "javax.swing.JToolTip" ) {
name: "toolTip1" name: "toolTip1"
"tipText": "Some text in tool tip." "tipText": "Some text in tool tip."
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 20,alignx left,growx 0" "value": "cell 1 19 2 1,alignx left,growx 0"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "toolBarLabel" name: "toolBarLabel"
"text": "JToolBar:" "text": "JToolBar:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 21" "value": "cell 0 20"
} ) } )
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: "toolBar1" name: "toolBar1"
@@ -518,14 +497,19 @@ new FormModel {
"icon": #SwingIcon0 "icon": #SwingIcon0
"selected": true "selected": true
} ) } )
add( new FormComponent( "javax.swing.JToggleButton" ) {
name: "button9"
"icon": #SwingIcon0
"selected": true
} )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 21" "value": "cell 1 20 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "tabbedPaneLabel" name: "tabbedPaneLabel"
"text": "JTabbedPane:" "text": "JTabbedPane:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 22" "value": "cell 0 21"
} ) } )
add( new FormContainer( "com.formdev.flatlaf.themeeditor.FlatThemePreviewAll$PreviewTabbedPane", new FormLayoutManager( class javax.swing.JTabbedPane ) ) { add( new FormContainer( "com.formdev.flatlaf.themeeditor.FlatThemePreviewAll$PreviewTabbedPane", new FormLayoutManager( class javax.swing.JTabbedPane ) ) {
name: "tabbedPane1" name: "tabbedPane1"
@@ -533,13 +517,13 @@ new FormModel {
"JavaCodeGenerator.variableLocal": false "JavaCodeGenerator.variableLocal": false
} }
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 22" "value": "cell 1 21 2 1"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "listTreeLabel" name: "listTreeLabel"
"text": "<html>JList / JTree:<br>JSplitPane:</html>" "text": "<html>JList / JTree:<br>JSplitPane:</html>"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 23,aligny top,growy 0" "value": "cell 0 22,aligny top,growy 0"
} ) } )
add( new FormContainer( "javax.swing.JSplitPane", new FormLayoutManager( class javax.swing.JSplitPane ) ) { add( new FormContainer( "javax.swing.JSplitPane", new FormLayoutManager( class javax.swing.JSplitPane ) ) {
name: "splitPane1" name: "splitPane1"
@@ -584,13 +568,13 @@ new FormModel {
"value": "right" "value": "right"
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 23,height 50" "value": "cell 1 22 2 1,height 50"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "tableLabel" name: "tableLabel"
"text": "JTable:" "text": "JTable:"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 24" "value": "cell 0 23"
} ) } )
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: "scrollPane4" name: "scrollPane4"
@@ -623,13 +607,13 @@ new FormModel {
} }
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 24,height 70" "value": "cell 1 23 2 1,width 100,height 70"
} ) } )
add( new FormComponent( "javax.swing.JLabel" ) { add( new FormComponent( "javax.swing.JLabel" ) {
name: "internalFrameLabel" name: "internalFrameLabel"
"text": "<html>JDesktopPane:<br>JInternalFrame:</html>" "text": "<html>JDesktopPane:<br>JInternalFrame:</html>"
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 0 25,aligny top,growy 0" "value": "cell 0 24,aligny top,growy 0"
} ) } )
add( new FormContainer( "javax.swing.JDesktopPane", new FormLayoutManager( class javax.swing.JDesktopPane ) ) { add( new FormContainer( "javax.swing.JDesktopPane", new FormLayoutManager( class javax.swing.JDesktopPane ) ) {
name: "desktopPane1" name: "desktopPane1"
@@ -667,7 +651,7 @@ new FormModel {
"y": 50 "y": 50
} ) } )
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) { }, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
"value": "cell 1 25" "value": "cell 1 24 2 1"
} ) } )
}, new FormLayoutConstraints( null ) { }, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 ) "location": new java.awt.Point( 0, 0 )