mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-27 03:46:17 -06:00
Demo, Testing, Theme Editor: re-generated UI code using JFormDesigner 8.3, which now supports class FlatClientProperties
This commit is contained in:
@@ -28,6 +28,7 @@ import javax.swing.UIDefaults.ActiveValue;
|
||||
import javax.swing.UIDefaults.LazyValue;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
import com.formdev.flatlaf.FlatClientProperties;
|
||||
import com.formdev.flatlaf.FlatLaf;
|
||||
import com.formdev.flatlaf.UIDefaultsLoaderAccessor;
|
||||
import com.formdev.flatlaf.extras.components.*;
|
||||
@@ -252,7 +253,7 @@ class FlatThemePreview
|
||||
|
||||
//---- previewLabel ----
|
||||
previewLabel.setText(" Preview ");
|
||||
previewLabel.putClientProperty("FlatLaf.styleClass", "h2");
|
||||
previewLabel.putClientProperty(FlatClientProperties.STYLE_CLASS, "h2");
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||
}
|
||||
|
||||
|
||||
@@ -423,7 +423,7 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- label1 ----
|
||||
label1.setText("Some Text");
|
||||
label1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-label");
|
||||
label1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-label");
|
||||
add(label1, "cell 1 1 2 1");
|
||||
|
||||
//---- flatButton1 ----
|
||||
@@ -438,12 +438,12 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- button1 ----
|
||||
button1.setText("OK");
|
||||
button1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-button");
|
||||
button1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-button");
|
||||
add(button1, "cell 1 2");
|
||||
|
||||
//---- testDefaultButton1 ----
|
||||
testDefaultButton1.setText("Default");
|
||||
testDefaultButton1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-button");
|
||||
testDefaultButton1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-button");
|
||||
add(testDefaultButton1, "cell 2 2");
|
||||
|
||||
//---- toggleButtonLabel ----
|
||||
@@ -452,13 +452,13 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- toggleButton1 ----
|
||||
toggleButton1.setText("Unselected");
|
||||
toggleButton1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-togglebutton");
|
||||
toggleButton1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-togglebutton");
|
||||
add(toggleButton1, "cell 1 3");
|
||||
|
||||
//---- toggleButton3 ----
|
||||
toggleButton3.setText("Selected");
|
||||
toggleButton3.setSelected(true);
|
||||
toggleButton3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-togglebutton");
|
||||
toggleButton3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-togglebutton");
|
||||
add(toggleButton3, "cell 2 3");
|
||||
|
||||
//---- checkBoxLabel ----
|
||||
@@ -467,13 +467,13 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- checkBox1 ----
|
||||
checkBox1.setText("Unselected");
|
||||
checkBox1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-checkbox");
|
||||
checkBox1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-checkbox");
|
||||
add(checkBox1, "cell 1 4,alignx left,growx 0");
|
||||
|
||||
//---- checkBox3 ----
|
||||
checkBox3.setText("Selected");
|
||||
checkBox3.setSelected(true);
|
||||
checkBox3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-checkbox");
|
||||
checkBox3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-checkbox");
|
||||
add(checkBox3, "cell 2 4,alignx left,growx 0");
|
||||
|
||||
//---- radioButtonLabel ----
|
||||
@@ -482,13 +482,13 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- radioButton1 ----
|
||||
radioButton1.setText("Unselected");
|
||||
radioButton1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-radiobutton");
|
||||
radioButton1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-radiobutton");
|
||||
add(radioButton1, "cell 1 5,alignx left,growx 0");
|
||||
|
||||
//---- radioButton3 ----
|
||||
radioButton3.setText("Selected");
|
||||
radioButton3.setSelected(true);
|
||||
radioButton3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-radiobutton");
|
||||
radioButton3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-radiobutton");
|
||||
add(radioButton3, "cell 2 5,alignx left,growx 0");
|
||||
|
||||
//---- comboBoxLabel ----
|
||||
@@ -513,7 +513,7 @@ class FlatThemePreviewAll
|
||||
}));
|
||||
comboBox1.setMaximumRowCount(6);
|
||||
comboBox1.setPlaceholderText("placeholder text");
|
||||
comboBox1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-combobox");
|
||||
comboBox1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-combobox");
|
||||
add(comboBox1, "cell 1 6");
|
||||
|
||||
//---- comboBox3 ----
|
||||
@@ -526,7 +526,7 @@ class FlatThemePreviewAll
|
||||
"e"
|
||||
}));
|
||||
comboBox3.setMaximumRowCount(6);
|
||||
comboBox3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-combobox");
|
||||
comboBox3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-combobox");
|
||||
add(comboBox3, "cell 2 6");
|
||||
|
||||
//---- spinnerLabel ----
|
||||
@@ -534,7 +534,7 @@ class FlatThemePreviewAll
|
||||
add(spinnerLabel, "cell 0 7");
|
||||
|
||||
//---- spinner1 ----
|
||||
spinner1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-spinner");
|
||||
spinner1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-spinner");
|
||||
add(spinner1, "cell 1 7 2 1");
|
||||
|
||||
//---- textFieldLabel ----
|
||||
@@ -544,24 +544,24 @@ class FlatThemePreviewAll
|
||||
//---- textField1 ----
|
||||
textField1.setText("Some Text");
|
||||
textField1.setPlaceholderText("placeholder text");
|
||||
textField1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-textfield");
|
||||
textField1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-textfield");
|
||||
add(textField1, "cell 1 8");
|
||||
|
||||
//---- textField2 ----
|
||||
textField2.setText("Txt");
|
||||
textField2.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-textfield");
|
||||
textField2.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-textfield");
|
||||
add(textField2, "cell 2 8");
|
||||
|
||||
//---- formattedTextField1 ----
|
||||
formattedTextField1.setText("Some Text");
|
||||
formattedTextField1.setPlaceholderText("placeholder text");
|
||||
formattedTextField1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-formattedtextfield");
|
||||
formattedTextField1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-formattedtextfield");
|
||||
add(formattedTextField1, "cell 1 9");
|
||||
|
||||
//---- passwordField1 ----
|
||||
passwordField1.setText("Some Text");
|
||||
passwordField1.setPlaceholderText("placeholder text");
|
||||
passwordField1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-passwordfield");
|
||||
passwordField1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-passwordfield");
|
||||
passwordField1.setShowClearButton(true);
|
||||
add(passwordField1, "cell 2 9");
|
||||
|
||||
@@ -577,7 +577,7 @@ class FlatThemePreviewAll
|
||||
//---- textArea1 ----
|
||||
textArea1.setText("Text");
|
||||
textArea1.setRows(2);
|
||||
textArea1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-textarea");
|
||||
textArea1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-textarea");
|
||||
scrollPane1.setViewportView(textArea1);
|
||||
}
|
||||
add(scrollPane1, "cell 1 10 2 1,width 40");
|
||||
@@ -589,7 +589,7 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- editorPane1 ----
|
||||
editorPane1.setText("Text");
|
||||
editorPane1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-editorpane");
|
||||
editorPane1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-editorpane");
|
||||
scrollPane5.setViewportView(editorPane1);
|
||||
}
|
||||
add(scrollPane5, "cell 1 10 2 1,width 40");
|
||||
@@ -601,7 +601,7 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- textPane1 ----
|
||||
textPane1.setText("Text");
|
||||
textPane1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-textpane");
|
||||
textPane1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-textpane");
|
||||
scrollPane9.setViewportView(textPane1);
|
||||
}
|
||||
add(scrollPane9, "cell 1 10 2 1,width 40");
|
||||
@@ -615,62 +615,62 @@ class FlatThemePreviewAll
|
||||
menuUnderlineSelectionButton.setButtonType(FlatButton.ButtonType.toolBarButton);
|
||||
menuUnderlineSelectionButton.setToolTipText("menu underline selection");
|
||||
menuUnderlineSelectionButton.setFocusable(false);
|
||||
menuUnderlineSelectionButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
menuUnderlineSelectionButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
menuUnderlineSelectionButton.addActionListener(e -> menuUnderlineSelectionChanged());
|
||||
add(menuUnderlineSelectionButton, "cell 0 11");
|
||||
|
||||
//======== menuBar1 ========
|
||||
{
|
||||
menuBar1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menubar");
|
||||
menuBar1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menubar");
|
||||
|
||||
//======== menu2 ========
|
||||
{
|
||||
menu2.setText("JMenu");
|
||||
menu2.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menu");
|
||||
menu2.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menu");
|
||||
|
||||
//---- menuItem3 ----
|
||||
menuItem3.setText("JMenuItem");
|
||||
menuItem3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu2.add(menuItem3);
|
||||
|
||||
//---- menuItem4 ----
|
||||
menuItem4.setText("JMenuItem");
|
||||
menuItem4.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem4.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu2.add(menuItem4);
|
||||
menu2.addSeparator();
|
||||
|
||||
//---- checkBoxMenuItem2 ----
|
||||
checkBoxMenuItem2.setText("JCheckBoxMenuItem");
|
||||
checkBoxMenuItem2.setSelected(true);
|
||||
checkBoxMenuItem2.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-checkboxmenuitem");
|
||||
checkBoxMenuItem2.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-checkboxmenuitem");
|
||||
menu2.add(checkBoxMenuItem2);
|
||||
|
||||
//---- checkBoxMenuItem3 ----
|
||||
checkBoxMenuItem3.setText("JCheckBoxMenuItem");
|
||||
checkBoxMenuItem3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-checkboxmenuitem");
|
||||
checkBoxMenuItem3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-checkboxmenuitem");
|
||||
menu2.add(checkBoxMenuItem3);
|
||||
menu2.addSeparator();
|
||||
|
||||
//---- radioButtonMenuItem4 ----
|
||||
radioButtonMenuItem4.setText("JRadioButtonMenuItem");
|
||||
radioButtonMenuItem4.setSelected(true);
|
||||
radioButtonMenuItem4.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-radiobuttonmenuitem");
|
||||
radioButtonMenuItem4.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-radiobuttonmenuitem");
|
||||
menu2.add(radioButtonMenuItem4);
|
||||
|
||||
//---- radioButtonMenuItem5 ----
|
||||
radioButtonMenuItem5.setText("JRadioButtonMenuItem");
|
||||
radioButtonMenuItem5.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-radiobuttonmenuitem");
|
||||
radioButtonMenuItem5.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-radiobuttonmenuitem");
|
||||
menu2.add(radioButtonMenuItem5);
|
||||
menu2.addSeparator();
|
||||
|
||||
//======== menu4 ========
|
||||
{
|
||||
menu4.setText("JMenu");
|
||||
menu4.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menu");
|
||||
menu4.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menu");
|
||||
|
||||
//---- menuItem6 ----
|
||||
menuItem6.setText("JMenuItem");
|
||||
menuItem6.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem6.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu4.add(menuItem6);
|
||||
}
|
||||
menu2.add(menu4);
|
||||
@@ -678,11 +678,11 @@ class FlatThemePreviewAll
|
||||
//======== menu5 ========
|
||||
{
|
||||
menu5.setText("JMenu");
|
||||
menu5.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menu");
|
||||
menu5.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menu");
|
||||
|
||||
//---- menuItem7 ----
|
||||
menuItem7.setText("JMenuItem");
|
||||
menuItem7.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem7.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu5.add(menuItem7);
|
||||
}
|
||||
menu2.add(menu5);
|
||||
@@ -692,22 +692,22 @@ class FlatThemePreviewAll
|
||||
//======== menu3 ========
|
||||
{
|
||||
menu3.setText("JMenu");
|
||||
menu3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menu");
|
||||
menu3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menu");
|
||||
|
||||
//---- menuItem5 ----
|
||||
menuItem5.setText("JMenuItem");
|
||||
menuItem5.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, KeyEvent.CTRL_DOWN_MASK|KeyEvent.ALT_DOWN_MASK|KeyEvent.SHIFT_DOWN_MASK));
|
||||
menuItem5.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem5.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu3.add(menuItem5);
|
||||
|
||||
//---- menuItem8 ----
|
||||
menuItem8.setText("JMenuItem");
|
||||
menuItem8.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem8.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu3.add(menuItem8);
|
||||
|
||||
//---- menuItem9 ----
|
||||
menuItem9.setText("JMenuItem");
|
||||
menuItem9.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-menuitem");
|
||||
menuItem9.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-menuitem");
|
||||
menu3.add(menuItem9);
|
||||
}
|
||||
menuBar1.add(menu3);
|
||||
@@ -720,14 +720,14 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- scrollBar1 ----
|
||||
scrollBar1.setOrientation(Adjustable.HORIZONTAL);
|
||||
scrollBar1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-scrollbar");
|
||||
scrollBar1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-scrollbar");
|
||||
scrollBar1.setVisibleAmount(50);
|
||||
add(scrollBar1, "cell 1 12 2 1");
|
||||
|
||||
//---- scrollBar5 ----
|
||||
scrollBar5.setOrientation(Adjustable.HORIZONTAL);
|
||||
scrollBar5.setShowButtons(true);
|
||||
scrollBar5.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-scrollbar");
|
||||
scrollBar5.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-scrollbar");
|
||||
scrollBar5.setVisibleAmount(50);
|
||||
add(scrollBar5, "cell 1 13 2 1");
|
||||
|
||||
@@ -736,7 +736,7 @@ class FlatThemePreviewAll
|
||||
add(separatorLabel, "cell 0 14");
|
||||
|
||||
//---- separator1 ----
|
||||
separator1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-separator");
|
||||
separator1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-separator");
|
||||
add(separator1, "cell 1 14 2 1");
|
||||
|
||||
//---- sliderLabel ----
|
||||
@@ -744,7 +744,7 @@ class FlatThemePreviewAll
|
||||
add(sliderLabel, "cell 0 15");
|
||||
|
||||
//---- slider1 ----
|
||||
slider1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-slider");
|
||||
slider1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-slider");
|
||||
add(slider1, "cell 1 15 2 1,width 100");
|
||||
|
||||
//---- slider3 ----
|
||||
@@ -752,7 +752,7 @@ class FlatThemePreviewAll
|
||||
slider3.setPaintTicks(true);
|
||||
slider3.setMajorTickSpacing(50);
|
||||
slider3.setPaintLabels(true);
|
||||
slider3.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-slider");
|
||||
slider3.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-slider");
|
||||
slider3.addChangeListener(e -> changeProgress());
|
||||
add(slider3, "cell 1 16 2 1,width 100");
|
||||
|
||||
@@ -762,13 +762,13 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- progressBar1 ----
|
||||
progressBar1.setValue(50);
|
||||
progressBar1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-progressbar");
|
||||
progressBar1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-progressbar");
|
||||
add(progressBar1, "cell 1 17 2 1");
|
||||
|
||||
//---- progressBar2 ----
|
||||
progressBar2.setValue(50);
|
||||
progressBar2.setStringPainted(true);
|
||||
progressBar2.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-progressbar");
|
||||
progressBar2.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-progressbar");
|
||||
add(progressBar2, "cell 1 18 2 1");
|
||||
|
||||
//---- toolTipLabel ----
|
||||
@@ -777,7 +777,7 @@ class FlatThemePreviewAll
|
||||
|
||||
//---- toolTip1 ----
|
||||
toolTip1.setTipText("Some text in tool tip.");
|
||||
toolTip1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-tooltip");
|
||||
toolTip1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-tooltip");
|
||||
add(toolTip1, "cell 1 19 2 1,alignx left,growx 0");
|
||||
|
||||
//---- toolBarLabel ----
|
||||
@@ -786,39 +786,39 @@ class FlatThemePreviewAll
|
||||
|
||||
//======== toolBar1 ========
|
||||
{
|
||||
toolBar1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar");
|
||||
toolBar1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar");
|
||||
|
||||
//---- button4 ----
|
||||
button4.setIcon(UIManager.getIcon("Tree.closedIcon"));
|
||||
button4.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar-button");
|
||||
button4.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar-button");
|
||||
toolBar1.add(button4);
|
||||
|
||||
//---- button6 ----
|
||||
button6.setIcon(UIManager.getIcon("Tree.openIcon"));
|
||||
button6.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar-button");
|
||||
button6.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar-button");
|
||||
toolBar1.add(button6);
|
||||
toolBar1.addSeparator();
|
||||
|
||||
//---- button7 ----
|
||||
button7.setIcon(UIManager.getIcon("Tree.leafIcon"));
|
||||
button7.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar-togglebutton");
|
||||
button7.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar-togglebutton");
|
||||
toolBar1.add(button7);
|
||||
|
||||
//---- button8 ----
|
||||
button8.setIcon(UIManager.getIcon("Tree.leafIcon"));
|
||||
button8.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar-togglebutton");
|
||||
button8.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar-togglebutton");
|
||||
toolBar1.add(button8);
|
||||
|
||||
//---- button9 ----
|
||||
button9.setIcon(UIManager.getIcon("Tree.leafIcon"));
|
||||
button9.setSelected(true);
|
||||
button9.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar-togglebutton");
|
||||
button9.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar-togglebutton");
|
||||
toolBar1.add(button9);
|
||||
|
||||
//---- button10 ----
|
||||
button10.setIcon(UIManager.getIcon("Tree.leafIcon"));
|
||||
button10.setSelected(true);
|
||||
button10.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-toolbar-togglebutton");
|
||||
button10.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-toolbar-togglebutton");
|
||||
toolBar1.add(button10);
|
||||
}
|
||||
add(toolBar1, "cell 1 20 2 1");
|
||||
@@ -829,7 +829,7 @@ class FlatThemePreviewAll
|
||||
|
||||
//======== tabbedPane1 ========
|
||||
{
|
||||
tabbedPane1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-tabbedpane");
|
||||
tabbedPane1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-tabbedpane");
|
||||
}
|
||||
add(tabbedPane1, "cell 1 21 2 1");
|
||||
|
||||
@@ -840,7 +840,7 @@ class FlatThemePreviewAll
|
||||
//======== splitPane1 ========
|
||||
{
|
||||
splitPane1.setResizeWeight(0.5);
|
||||
splitPane1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-splitpane");
|
||||
splitPane1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-splitpane");
|
||||
|
||||
//======== scrollPane2 ========
|
||||
{
|
||||
@@ -858,7 +858,7 @@ class FlatThemePreviewAll
|
||||
@Override
|
||||
public String getElementAt(int i) { return values[i]; }
|
||||
});
|
||||
list1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-list");
|
||||
list1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-list");
|
||||
scrollPane2.setViewportView(list1);
|
||||
}
|
||||
splitPane1.setLeftComponent(scrollPane2);
|
||||
@@ -879,7 +879,7 @@ class FlatThemePreviewAll
|
||||
add(node1);
|
||||
}
|
||||
}));
|
||||
tree1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-tree");
|
||||
tree1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-tree");
|
||||
scrollPane3.setViewportView(tree1);
|
||||
}
|
||||
splitPane1.setRightComponent(scrollPane3);
|
||||
@@ -903,7 +903,7 @@ class FlatThemePreviewAll
|
||||
"Column 1", "Column 2"
|
||||
}
|
||||
));
|
||||
table1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-table");
|
||||
table1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-table");
|
||||
scrollPane4.setViewportView(table1);
|
||||
}
|
||||
add(scrollPane4, "cell 1 23 2 1,width 100,height 70");
|
||||
@@ -914,7 +914,7 @@ class FlatThemePreviewAll
|
||||
|
||||
//======== desktopPane1 ========
|
||||
{
|
||||
desktopPane1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-desktoppane");
|
||||
desktopPane1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-desktoppane");
|
||||
|
||||
//======== internalFrame1 ========
|
||||
{
|
||||
@@ -924,7 +924,7 @@ class FlatThemePreviewAll
|
||||
internalFrame1.setMaximizable(true);
|
||||
internalFrame1.setIconifiable(true);
|
||||
internalFrame1.setResizable(true);
|
||||
internalFrame1.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-internalframe");
|
||||
internalFrame1.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-internalframe");
|
||||
Container internalFrame1ContentPane = internalFrame1.getContentPane();
|
||||
internalFrame1ContentPane.setLayout(new BorderLayout());
|
||||
}
|
||||
@@ -939,7 +939,7 @@ class FlatThemePreviewAll
|
||||
internalFrame2.setMaximizable(true);
|
||||
internalFrame2.setResizable(true);
|
||||
internalFrame2.setTitle("Inactive");
|
||||
internalFrame2.putClientProperty("FlatLaf.styleClass", "flatlaf-preview-internalframe");
|
||||
internalFrame2.putClientProperty(FlatClientProperties.STYLE_CLASS, "flatlaf-preview-internalframe");
|
||||
Container internalFrame2ContentPane = internalFrame2.getContentPane();
|
||||
internalFrame2ContentPane.setLayout(new BorderLayout());
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import java.awt.Component;
|
||||
import java.util.Objects;
|
||||
import java.util.function.Predicate;
|
||||
import javax.swing.*;
|
||||
import com.formdev.flatlaf.FlatClientProperties;
|
||||
import net.miginfocom.swing.*;
|
||||
|
||||
/**
|
||||
@@ -232,25 +233,25 @@ class FlatThemePreviewButtons
|
||||
//---- noneButton ----
|
||||
noneButton.setText("none");
|
||||
noneButton.setSelected(true);
|
||||
noneButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
noneButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
noneButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(noneButton);
|
||||
|
||||
//---- squareButton ----
|
||||
squareButton.setText("square");
|
||||
squareButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
squareButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
squareButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(squareButton);
|
||||
|
||||
//---- roundRectButton ----
|
||||
roundRectButton.setText("roundRect");
|
||||
roundRectButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
roundRectButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
roundRectButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(roundRectButton);
|
||||
|
||||
//---- tabButton ----
|
||||
tabButton.setText("tab");
|
||||
tabButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
tabButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
tabButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(tabButton);
|
||||
}
|
||||
@@ -263,13 +264,13 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- toolBarButtonButton ----
|
||||
toolBarButtonButton.setText("toolBarButton");
|
||||
toolBarButtonButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
toolBarButtonButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
toolBarButtonButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar2.add(toolBarButtonButton);
|
||||
|
||||
//---- borderlessButton ----
|
||||
borderlessButton.setText("borderless");
|
||||
borderlessButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
borderlessButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
borderlessButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar2.add(borderlessButton);
|
||||
}
|
||||
@@ -279,7 +280,7 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label11 ----
|
||||
label11.setText("JButton");
|
||||
label11.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
label11.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(label11, "cell 0 1 3 1");
|
||||
|
||||
//---- label27 ----
|
||||
@@ -292,22 +293,22 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label5 ----
|
||||
label5.setText("regular");
|
||||
label5.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label5.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label5, "cell 1 3,alignx center,growx 0");
|
||||
|
||||
//---- label7 ----
|
||||
label7.setText("default");
|
||||
label7.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label7.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label7, "cell 2 3,alignx center,growx 0");
|
||||
|
||||
//---- label6 ----
|
||||
label6.setText("regular");
|
||||
label6.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label6.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label6, "cell 3 3,alignx center,growx 0");
|
||||
|
||||
//---- label8 ----
|
||||
label8.setText("default");
|
||||
label8.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label8.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label8, "cell 4 3,alignx center,growx 0");
|
||||
|
||||
//---- label1 ----
|
||||
@@ -316,26 +317,26 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- testStateButton1 ----
|
||||
testStateButton1.setText("OK");
|
||||
testStateButton1.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton1.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton1, "cell 1 4");
|
||||
|
||||
//---- testStateButton7 ----
|
||||
testStateButton7.setText("OK");
|
||||
testStateButton7.setStateDefault(true);
|
||||
testStateButton7.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton7.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton7, "cell 2 4");
|
||||
|
||||
//---- testStateButton4 ----
|
||||
testStateButton4.setText("OK");
|
||||
testStateButton4.setStateFocused(true);
|
||||
testStateButton4.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton4.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton4, "cell 3 4");
|
||||
|
||||
//---- testStateButton10 ----
|
||||
testStateButton10.setText("OK");
|
||||
testStateButton10.setStateFocused(true);
|
||||
testStateButton10.setStateDefault(true);
|
||||
testStateButton10.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton10.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton10, "cell 4 4");
|
||||
|
||||
//---- label2 ----
|
||||
@@ -345,21 +346,21 @@ class FlatThemePreviewButtons
|
||||
//---- testStateButton2 ----
|
||||
testStateButton2.setText("OK");
|
||||
testStateButton2.setStateHover(true);
|
||||
testStateButton2.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton2.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton2, "cell 1 5");
|
||||
|
||||
//---- testStateButton8 ----
|
||||
testStateButton8.setText("OK");
|
||||
testStateButton8.setStateHover(true);
|
||||
testStateButton8.setStateDefault(true);
|
||||
testStateButton8.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton8.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton8, "cell 2 5");
|
||||
|
||||
//---- testStateButton5 ----
|
||||
testStateButton5.setText("OK");
|
||||
testStateButton5.setStateHover(true);
|
||||
testStateButton5.setStateFocused(true);
|
||||
testStateButton5.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton5.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton5, "cell 3 5");
|
||||
|
||||
//---- testStateButton11 ----
|
||||
@@ -367,7 +368,7 @@ class FlatThemePreviewButtons
|
||||
testStateButton11.setStateHover(true);
|
||||
testStateButton11.setStateFocused(true);
|
||||
testStateButton11.setStateDefault(true);
|
||||
testStateButton11.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton11.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton11, "cell 4 5");
|
||||
|
||||
//---- label3 ----
|
||||
@@ -377,21 +378,21 @@ class FlatThemePreviewButtons
|
||||
//---- testStateButton3 ----
|
||||
testStateButton3.setText("OK");
|
||||
testStateButton3.setStatePressed(true);
|
||||
testStateButton3.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton3.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton3, "cell 1 6");
|
||||
|
||||
//---- testStateButton9 ----
|
||||
testStateButton9.setText("OK");
|
||||
testStateButton9.setStatePressed(true);
|
||||
testStateButton9.setStateDefault(true);
|
||||
testStateButton9.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton9.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton9, "cell 2 6");
|
||||
|
||||
//---- testStateButton6 ----
|
||||
testStateButton6.setText("OK");
|
||||
testStateButton6.setStatePressed(true);
|
||||
testStateButton6.setStateFocused(true);
|
||||
testStateButton6.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton6.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton6, "cell 3 6");
|
||||
|
||||
//---- testStateButton12 ----
|
||||
@@ -399,7 +400,7 @@ class FlatThemePreviewButtons
|
||||
testStateButton12.setStatePressed(true);
|
||||
testStateButton12.setStateFocused(true);
|
||||
testStateButton12.setStateDefault(true);
|
||||
testStateButton12.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton12.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton12, "cell 4 6");
|
||||
|
||||
//---- label4 ----
|
||||
@@ -409,14 +410,14 @@ class FlatThemePreviewButtons
|
||||
//---- testStateButton13 ----
|
||||
testStateButton13.setText("OK");
|
||||
testStateButton13.setEnabled(false);
|
||||
testStateButton13.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton13.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton13, "cell 1 7");
|
||||
|
||||
//---- testStateButton14 ----
|
||||
testStateButton14.setText("OK");
|
||||
testStateButton14.setEnabled(false);
|
||||
testStateButton14.setStateDefault(true);
|
||||
testStateButton14.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton14.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testStateButton14, "cell 2 7");
|
||||
|
||||
//---- label10 ----
|
||||
@@ -425,17 +426,17 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- button1 ----
|
||||
button1.setText("OK");
|
||||
button1.putClientProperty("JComponent.minimumWidth", 0);
|
||||
button1.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(button1, "cell 1 8");
|
||||
|
||||
//---- testDefaultButton1 ----
|
||||
testDefaultButton1.setText("OK");
|
||||
testDefaultButton1.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testDefaultButton1.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
add(testDefaultButton1, "cell 2 8");
|
||||
|
||||
//---- label12 ----
|
||||
label12.setText("JToggleButton");
|
||||
label12.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
label12.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(label12, "cell 0 9 3 1");
|
||||
|
||||
//---- label29 ----
|
||||
@@ -448,22 +449,22 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label13 ----
|
||||
label13.setText("unsel.");
|
||||
label13.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label13.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label13, "cell 1 11,alignx center,growx 0");
|
||||
|
||||
//---- label14 ----
|
||||
label14.setText("selected");
|
||||
label14.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label14.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label14, "cell 2 11,alignx center,growx 0");
|
||||
|
||||
//---- label15 ----
|
||||
label15.setText("unsel.");
|
||||
label15.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label15.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label15, "cell 3 11,alignx center,growx 0");
|
||||
|
||||
//---- label16 ----
|
||||
label16.setText("selected");
|
||||
label16.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label16.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label16, "cell 4 11,alignx center,growx 0");
|
||||
|
||||
//---- label17 ----
|
||||
@@ -576,7 +577,7 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label32 ----
|
||||
label32.setText("Help Button");
|
||||
label32.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
label32.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(label32, "cell 0 17 2 1");
|
||||
|
||||
//---- label9 ----
|
||||
@@ -592,14 +593,14 @@ class FlatThemePreviewButtons
|
||||
add(label22, "cell 0 19");
|
||||
|
||||
//---- testStateButton15 ----
|
||||
testStateButton15.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton15.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton15.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton15.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton15, "cell 1 19 2 1,alignx center,growx 0");
|
||||
|
||||
//---- testStateButton19 ----
|
||||
testStateButton19.setStateFocused(true);
|
||||
testStateButton19.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton19.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton19.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton19.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton19, "cell 3 19 2 1,alignx center,growx 0");
|
||||
|
||||
//---- label23 ----
|
||||
@@ -608,15 +609,15 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- testStateButton16 ----
|
||||
testStateButton16.setStateHover(true);
|
||||
testStateButton16.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton16.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton16.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton16.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton16, "cell 1 20 2 1,alignx center,growx 0");
|
||||
|
||||
//---- testStateButton20 ----
|
||||
testStateButton20.setStateHover(true);
|
||||
testStateButton20.setStateFocused(true);
|
||||
testStateButton20.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton20.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton20.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton20.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton20, "cell 3 20 2 1,alignx center,growx 0");
|
||||
|
||||
//---- label24 ----
|
||||
@@ -625,15 +626,15 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- testStateButton17 ----
|
||||
testStateButton17.setStatePressed(true);
|
||||
testStateButton17.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton17.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton17.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton17.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton17, "cell 1 21 2 1,alignx center,growx 0");
|
||||
|
||||
//---- testStateButton21 ----
|
||||
testStateButton21.setStatePressed(true);
|
||||
testStateButton21.setStateFocused(true);
|
||||
testStateButton21.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton21.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton21.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton21.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton21, "cell 3 21 2 1,alignx center,growx 0");
|
||||
|
||||
//---- label25 ----
|
||||
@@ -642,8 +643,8 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- testStateButton18 ----
|
||||
testStateButton18.setEnabled(false);
|
||||
testStateButton18.putClientProperty("JComponent.minimumWidth", 0);
|
||||
testStateButton18.putClientProperty("JButton.buttonType", "help");
|
||||
testStateButton18.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
testStateButton18.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(testStateButton18, "cell 1 22 2 1,alignx center,growx 0");
|
||||
|
||||
//---- label26 ----
|
||||
@@ -651,8 +652,8 @@ class FlatThemePreviewButtons
|
||||
add(label26, "cell 0 23");
|
||||
|
||||
//---- button2 ----
|
||||
button2.putClientProperty("JComponent.minimumWidth", 0);
|
||||
button2.putClientProperty("JButton.buttonType", "help");
|
||||
button2.putClientProperty(FlatClientProperties.MINIMUM_WIDTH, 0);
|
||||
button2.putClientProperty(FlatClientProperties.BUTTON_TYPE, FlatClientProperties.BUTTON_TYPE_HELP);
|
||||
add(button2, "cell 1 23 2 1,alignx center,growx 0");
|
||||
|
||||
//---- buttonGroup1 ----
|
||||
|
||||
@@ -85,7 +85,7 @@ public class FlatThemePreviewFonts
|
||||
|
||||
//---- headingsLabel ----
|
||||
headingsLabel.setText("Headings");
|
||||
headingsLabel.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
headingsLabel.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(headingsLabel, "cell 0 0");
|
||||
|
||||
//---- h00Preview ----
|
||||
@@ -123,7 +123,7 @@ public class FlatThemePreviewFonts
|
||||
|
||||
//---- textLabel ----
|
||||
textLabel.setText("Text");
|
||||
textLabel.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
textLabel.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(textLabel, "cell 0 7");
|
||||
|
||||
//---- largePreview ----
|
||||
@@ -171,7 +171,7 @@ public class FlatThemePreviewFonts
|
||||
|
||||
//---- scaleValueLabel ----
|
||||
scaleValueLabel.setText("1x");
|
||||
scaleValueLabel.putClientProperty("FlatLaf.styleClass", "h2");
|
||||
scaleValueLabel.putClientProperty(FlatClientProperties.STYLE_CLASS, "h2");
|
||||
add(scaleValueLabel, "cell 0 16");
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||
}
|
||||
@@ -275,7 +275,7 @@ public class FlatThemePreviewFonts
|
||||
|
||||
//---- descLabel ----
|
||||
descLabel.setText("description");
|
||||
descLabel.putClientProperty("FlatLaf.styleClass", "medium");
|
||||
descLabel.putClientProperty(FlatClientProperties.STYLE_CLASS, "medium");
|
||||
add(descLabel, "cell 1 0");
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||
}
|
||||
|
||||
@@ -262,25 +262,25 @@ class FlatThemePreviewSwitches
|
||||
//---- zoom1xButton ----
|
||||
zoom1xButton.setText("1x");
|
||||
zoom1xButton.setSelected(true);
|
||||
zoom1xButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
zoom1xButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
zoom1xButton.addActionListener(e -> zoomChanged());
|
||||
zoomToolBar.add(zoom1xButton);
|
||||
|
||||
//---- zoom2xButton ----
|
||||
zoom2xButton.setText("2x");
|
||||
zoom2xButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
zoom2xButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
zoom2xButton.addActionListener(e -> zoomChanged());
|
||||
zoomToolBar.add(zoom2xButton);
|
||||
|
||||
//---- zoom3xButton ----
|
||||
zoom3xButton.setText("3x");
|
||||
zoom3xButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
zoom3xButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
zoom3xButton.addActionListener(e -> zoomChanged());
|
||||
zoomToolBar.add(zoom3xButton);
|
||||
|
||||
//---- zoom4xButton ----
|
||||
zoom4xButton.setText("4x");
|
||||
zoom4xButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
zoom4xButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
zoom4xButton.addActionListener(e -> zoomChanged());
|
||||
zoomToolBar.add(zoom4xButton);
|
||||
zoomToolBar.addSeparator();
|
||||
@@ -288,7 +288,7 @@ class FlatThemePreviewSwitches
|
||||
//---- indeterminateButton ----
|
||||
indeterminateButton.setText("indeterminate");
|
||||
indeterminateButton.setSelected(true);
|
||||
indeterminateButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
indeterminateButton.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
indeterminateButton.addActionListener(e -> indeterminateChanged());
|
||||
zoomToolBar.add(indeterminateButton);
|
||||
}
|
||||
@@ -298,7 +298,7 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label22 ----
|
||||
label22.setText("JCheckBox");
|
||||
label22.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
label22.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(label22, "cell 0 1 3 1");
|
||||
|
||||
//---- label1 ----
|
||||
@@ -311,32 +311,32 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label23 ----
|
||||
label23.setText("unsel.");
|
||||
label23.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label23.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label23, "cell 1 3,alignx center,growx 0");
|
||||
|
||||
//---- label28 ----
|
||||
label28.setText("sel.");
|
||||
label28.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label28.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label28, "cell 2 3,alignx center,growx 0");
|
||||
|
||||
//---- label37 ----
|
||||
label37.setText("ind.");
|
||||
label37.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label37.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label37, "cell 3 3,alignx center,growx 0");
|
||||
|
||||
//---- label24 ----
|
||||
label24.setText("unsel.");
|
||||
label24.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label24.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label24, "cell 4 3,alignx center,growx 0");
|
||||
|
||||
//---- label29 ----
|
||||
label29.setText("sel.");
|
||||
label29.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label29.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label29, "cell 5 3,alignx center,growx 0");
|
||||
|
||||
//---- label38 ----
|
||||
label38.setText("ind.");
|
||||
label38.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label38.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label38, "cell 6 3,alignx center,growx 0");
|
||||
|
||||
//---- label17 ----
|
||||
@@ -466,7 +466,7 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label27 ----
|
||||
label27.setText("JRadioButton");
|
||||
label27.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
label27.putClientProperty(FlatClientProperties.STYLE_CLASS, "h3");
|
||||
add(label27, "cell 0 9 3 1");
|
||||
|
||||
//---- label3 ----
|
||||
@@ -479,22 +479,22 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label25 ----
|
||||
label25.setText("unsel.");
|
||||
label25.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label25.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label25, "cell 1 11,alignx center,growx 0");
|
||||
|
||||
//---- label30 ----
|
||||
label30.setText("sel.");
|
||||
label30.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label30.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label30, "cell 2 11,alignx center,growx 0");
|
||||
|
||||
//---- label26 ----
|
||||
label26.setText("unsel.");
|
||||
label26.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label26.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label26, "cell 4 11,alignx center,growx 0");
|
||||
|
||||
//---- label31 ----
|
||||
label31.setText("sel.");
|
||||
label31.putClientProperty("FlatLaf.styleClass", "small");
|
||||
label31.putClientProperty(FlatClientProperties.STYLE_CLASS, "small");
|
||||
add(label31, "cell 5 11,alignx center,growx 0");
|
||||
|
||||
//---- label36 ----
|
||||
|
||||
Reference in New Issue
Block a user