mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Typography: use typography styles in demo, theme editor, etc
This commit is contained in:
@@ -25,7 +25,6 @@ import java.awt.Cursor;
|
||||
import java.awt.Desktop;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.EventQueue;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.GraphicsConfiguration;
|
||||
import java.awt.Insets;
|
||||
@@ -52,6 +51,7 @@ import java.util.prefs.Preferences;
|
||||
import javax.lang.model.SourceVersion;
|
||||
import javax.swing.*;
|
||||
import net.miginfocom.swing.*;
|
||||
import com.formdev.flatlaf.FlatClientProperties;
|
||||
import com.formdev.flatlaf.FlatDarculaLaf;
|
||||
import com.formdev.flatlaf.FlatDarkLaf;
|
||||
import com.formdev.flatlaf.FlatIntelliJLaf;
|
||||
@@ -734,8 +734,7 @@ class FlatThemeFileEditor
|
||||
|
||||
private void about() {
|
||||
JLabel titleLabel = new JLabel( "FlatLaf Theme Editor" );
|
||||
Font titleFont = titleLabel.getFont();
|
||||
titleLabel.setFont( titleFont.deriveFont( (float) titleFont.getSize() + UIScale.scale( 6 ) ) );
|
||||
titleLabel.putClientProperty( FlatClientProperties.STYLE_CLASS, "h1" );
|
||||
|
||||
String link = "https://www.formdev.com/flatlaf/";
|
||||
JLabel linkLabel = new JLabel( "<html><a href=\"#\">" + link + "</a></html>" );
|
||||
|
||||
@@ -222,8 +222,8 @@ class FlatThemePreview
|
||||
add(previewSeparator, BorderLayout.LINE_START);
|
||||
|
||||
//---- previewLabel ----
|
||||
previewLabel.setText(" Preview ");
|
||||
previewLabel.setFont(previewLabel.getFont().deriveFont(previewLabel.getFont().getSize() + 6f));
|
||||
previewLabel.setText(" Preview ");
|
||||
previewLabel.putClientProperty("FlatLaf.styleClass", "h2");
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents
|
||||
}
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ new FormModel {
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "previewLabel"
|
||||
"text": " Preview "
|
||||
"font": new com.jformdesigner.model.SwingDerivedFont( null, 0, 6, false )
|
||||
"text": " Preview "
|
||||
"$client.FlatLaf.styleClass": "h2"
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 235 )
|
||||
"size": new java.awt.Dimension( 176, 24 )
|
||||
|
||||
@@ -560,7 +560,7 @@ class FlatThemePreviewAll
|
||||
menuUnderlineSelectionButton.setButtonType(FlatButton.ButtonType.toolBarButton);
|
||||
menuUnderlineSelectionButton.setToolTipText("menu underline selection");
|
||||
menuUnderlineSelectionButton.setFocusable(false);
|
||||
menuUnderlineSelectionButton.setFont(menuUnderlineSelectionButton.getFont().deriveFont(menuUnderlineSelectionButton.getFont().getSize() - 2f));
|
||||
menuUnderlineSelectionButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
menuUnderlineSelectionButton.addActionListener(e -> menuUnderlineSelectionChanged());
|
||||
add(menuUnderlineSelectionButton, "cell 0 11");
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ new FormModel {
|
||||
"buttonType": enum com.formdev.flatlaf.extras.components.FlatButton$ButtonType toolBarButton
|
||||
"toolTipText": "menu underline selection"
|
||||
"focusable": false
|
||||
"font": new com.jformdesigner.model.SwingDerivedFont( null, 0, -2, false )
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
|
||||
@@ -232,25 +232,25 @@ class FlatThemePreviewButtons
|
||||
//---- noneButton ----
|
||||
noneButton.setText("none");
|
||||
noneButton.setSelected(true);
|
||||
noneButton.setFont(noneButton.getFont().deriveFont(noneButton.getFont().getSize() - 2f));
|
||||
noneButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
noneButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(noneButton);
|
||||
|
||||
//---- squareButton ----
|
||||
squareButton.setText("square");
|
||||
squareButton.setFont(squareButton.getFont().deriveFont(squareButton.getFont().getSize() - 2f));
|
||||
squareButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
squareButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(squareButton);
|
||||
|
||||
//---- roundRectButton ----
|
||||
roundRectButton.setText("roundRect");
|
||||
roundRectButton.setFont(roundRectButton.getFont().deriveFont(roundRectButton.getFont().getSize() - 2f));
|
||||
roundRectButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
roundRectButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(roundRectButton);
|
||||
|
||||
//---- tabButton ----
|
||||
tabButton.setText("tab");
|
||||
tabButton.setFont(tabButton.getFont().deriveFont(tabButton.getFont().getSize() - 2f));
|
||||
tabButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
tabButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar1.add(tabButton);
|
||||
}
|
||||
@@ -263,13 +263,13 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- toolBarButtonButton ----
|
||||
toolBarButtonButton.setText("toolBarButton");
|
||||
toolBarButtonButton.setFont(toolBarButtonButton.getFont().deriveFont(toolBarButtonButton.getFont().getSize() - 2f));
|
||||
toolBarButtonButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
toolBarButtonButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar2.add(toolBarButtonButton);
|
||||
|
||||
//---- borderlessButton ----
|
||||
borderlessButton.setText("borderless");
|
||||
borderlessButton.setFont(borderlessButton.getFont().deriveFont(borderlessButton.getFont().getSize() - 2f));
|
||||
borderlessButton.putClientProperty("FlatLaf.styleClass", "small");
|
||||
borderlessButton.addActionListener(e -> buttonTypeChanged());
|
||||
buttonTypeToolBar2.add(borderlessButton);
|
||||
}
|
||||
@@ -279,7 +279,7 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label11 ----
|
||||
label11.setText("JButton");
|
||||
label11.setFont(label11.getFont().deriveFont(label11.getFont().getSize() + 4f));
|
||||
label11.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
add(label11, "cell 0 1 3 1");
|
||||
|
||||
//---- label27 ----
|
||||
@@ -292,22 +292,22 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label5 ----
|
||||
label5.setText("regular");
|
||||
label5.setFont(label5.getFont().deriveFont(label5.getFont().getSize() - 2f));
|
||||
label5.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label5, "cell 1 3,alignx center,growx 0");
|
||||
|
||||
//---- label7 ----
|
||||
label7.setText("default");
|
||||
label7.setFont(label7.getFont().deriveFont(label7.getFont().getSize() - 2f));
|
||||
label7.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label7, "cell 2 3,alignx center,growx 0");
|
||||
|
||||
//---- label6 ----
|
||||
label6.setText("regular");
|
||||
label6.setFont(label6.getFont().deriveFont(label6.getFont().getSize() - 2f));
|
||||
label6.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label6, "cell 3 3,alignx center,growx 0");
|
||||
|
||||
//---- label8 ----
|
||||
label8.setText("default");
|
||||
label8.setFont(label8.getFont().deriveFont(label8.getFont().getSize() - 2f));
|
||||
label8.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label8, "cell 4 3,alignx center,growx 0");
|
||||
|
||||
//---- label1 ----
|
||||
@@ -435,7 +435,7 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label12 ----
|
||||
label12.setText("JToggleButton");
|
||||
label12.setFont(label12.getFont().deriveFont(label12.getFont().getSize() + 4f));
|
||||
label12.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
add(label12, "cell 0 9 3 1");
|
||||
|
||||
//---- label29 ----
|
||||
@@ -448,22 +448,22 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label13 ----
|
||||
label13.setText("unsel.");
|
||||
label13.setFont(label13.getFont().deriveFont(label13.getFont().getSize() - 2f));
|
||||
label13.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label13, "cell 1 11,alignx center,growx 0");
|
||||
|
||||
//---- label14 ----
|
||||
label14.setText("selected");
|
||||
label14.setFont(label14.getFont().deriveFont(label14.getFont().getSize() - 2f));
|
||||
label14.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label14, "cell 2 11,alignx center,growx 0");
|
||||
|
||||
//---- label15 ----
|
||||
label15.setText("unsel.");
|
||||
label15.setFont(label15.getFont().deriveFont(label15.getFont().getSize() - 2f));
|
||||
label15.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label15, "cell 3 11,alignx center,growx 0");
|
||||
|
||||
//---- label16 ----
|
||||
label16.setText("selected");
|
||||
label16.setFont(label16.getFont().deriveFont(label16.getFont().getSize() - 2f));
|
||||
label16.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label16, "cell 4 11,alignx center,growx 0");
|
||||
|
||||
//---- label17 ----
|
||||
@@ -576,7 +576,7 @@ class FlatThemePreviewButtons
|
||||
|
||||
//---- label32 ----
|
||||
label32.setText("Help Button");
|
||||
label32.setFont(label32.getFont().deriveFont(label32.getFont().getSize() + 4f));
|
||||
label32.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
add(label32, "cell 0 17 2 1");
|
||||
|
||||
//---- label9 ----
|
||||
|
||||
@@ -33,7 +33,7 @@ new FormModel {
|
||||
"text": "none"
|
||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||
"selected": true
|
||||
"font": &SwingDerivedFont0 new com.jformdesigner.model.SwingDerivedFont( null, 0, -2, false )
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
@@ -43,7 +43,7 @@ new FormModel {
|
||||
name: "squareButton"
|
||||
"text": "square"
|
||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||
"font": #SwingDerivedFont0
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
@@ -53,7 +53,7 @@ new FormModel {
|
||||
name: "roundRectButton"
|
||||
"text": "roundRect"
|
||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||
"font": #SwingDerivedFont0
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
@@ -63,7 +63,7 @@ new FormModel {
|
||||
name: "tabButton"
|
||||
"text": "tab"
|
||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||
"font": #SwingDerivedFont0
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
@@ -80,7 +80,7 @@ new FormModel {
|
||||
name: "toolBarButtonButton"
|
||||
"text": "toolBarButton"
|
||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||
"font": #SwingDerivedFont0
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
@@ -90,7 +90,7 @@ new FormModel {
|
||||
name: "borderlessButton"
|
||||
"text": "borderless"
|
||||
"$buttonGroup": new FormReference( "buttonGroup1" )
|
||||
"font": #SwingDerivedFont0
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
auxiliary() {
|
||||
"JavaCodeGenerator.variableLocal": false
|
||||
}
|
||||
@@ -105,7 +105,7 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label11"
|
||||
"text": "JButton"
|
||||
"font": &SwingDerivedFont1 new com.jformdesigner.model.SwingDerivedFont( null, 0, 4, false )
|
||||
"$client.FlatLaf.styleClass": "h3"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 1 3 1"
|
||||
} )
|
||||
@@ -124,28 +124,28 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label5"
|
||||
"text": "regular"
|
||||
"font": &SwingDerivedFont2 new com.jformdesigner.model.SwingDerivedFont( null, 0, -2, false )
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 3,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label7"
|
||||
"text": "default"
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 3,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label6"
|
||||
"text": "regular"
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 3,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label8"
|
||||
"text": "default"
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 3,alignx center,growx 0"
|
||||
} )
|
||||
@@ -317,7 +317,7 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label12"
|
||||
"text": "JToggleButton"
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "h3"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 9 3 1"
|
||||
} )
|
||||
@@ -336,28 +336,28 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label13"
|
||||
"text": "unsel."
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 11,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label14"
|
||||
"text": "selected"
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 11,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label15"
|
||||
"text": "unsel."
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 11,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label16"
|
||||
"text": "selected"
|
||||
"font": #SwingDerivedFont2
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 11,alignx center,growx 0"
|
||||
} )
|
||||
@@ -514,7 +514,7 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label32"
|
||||
"text": "Help Button"
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "h3"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 17 2 1"
|
||||
} )
|
||||
|
||||
@@ -119,7 +119,7 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label22 ----
|
||||
label22.setText("JCheckBox");
|
||||
label22.setFont(label22.getFont().deriveFont(label22.getFont().getSize() + 4f));
|
||||
label22.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
add(label22, "cell 0 0 3 1");
|
||||
|
||||
//---- label1 ----
|
||||
@@ -132,22 +132,22 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label23 ----
|
||||
label23.setText("unsel.");
|
||||
label23.setFont(label23.getFont().deriveFont(label23.getFont().getSize() - 2f));
|
||||
label23.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label23, "cell 1 2,alignx center,growx 0");
|
||||
|
||||
//---- label28 ----
|
||||
label28.setText("selected");
|
||||
label28.setFont(label28.getFont().deriveFont(label28.getFont().getSize() - 2f));
|
||||
label28.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label28, "cell 2 2,alignx center,growx 0");
|
||||
|
||||
//---- label24 ----
|
||||
label24.setText("unsel.");
|
||||
label24.setFont(label24.getFont().deriveFont(label24.getFont().getSize() - 2f));
|
||||
label24.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label24, "cell 3 2,alignx center,growx 0");
|
||||
|
||||
//---- label29 ----
|
||||
label29.setText("selected");
|
||||
label29.setFont(label29.getFont().deriveFont(label29.getFont().getSize() - 2f));
|
||||
label29.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label29, "cell 4 2,alignx center,growx 0");
|
||||
|
||||
//---- label17 ----
|
||||
@@ -260,7 +260,7 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label27 ----
|
||||
label27.setText("JRadioButton");
|
||||
label27.setFont(label27.getFont().deriveFont(label27.getFont().getSize() + 4f));
|
||||
label27.putClientProperty("FlatLaf.styleClass", "h3");
|
||||
add(label27, "cell 0 8 3 1");
|
||||
|
||||
//---- label3 ----
|
||||
@@ -273,22 +273,22 @@ class FlatThemePreviewSwitches
|
||||
|
||||
//---- label25 ----
|
||||
label25.setText("unsel.");
|
||||
label25.setFont(label25.getFont().deriveFont(label25.getFont().getSize() - 2f));
|
||||
label25.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label25, "cell 1 10,alignx center,growx 0");
|
||||
|
||||
//---- label30 ----
|
||||
label30.setText("selected");
|
||||
label30.setFont(label30.getFont().deriveFont(label30.getFont().getSize() - 2f));
|
||||
label30.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label30, "cell 2 10,alignx center,growx 0");
|
||||
|
||||
//---- label26 ----
|
||||
label26.setText("unsel.");
|
||||
label26.setFont(label26.getFont().deriveFont(label26.getFont().getSize() - 2f));
|
||||
label26.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label26, "cell 3 10,alignx center,growx 0");
|
||||
|
||||
//---- label31 ----
|
||||
label31.setText("selected");
|
||||
label31.setFont(label31.getFont().deriveFont(label31.getFont().getSize() - 2f));
|
||||
label31.putClientProperty("FlatLaf.styleClass", "small");
|
||||
add(label31, "cell 4 10,alignx center,growx 0");
|
||||
|
||||
//---- label36 ----
|
||||
|
||||
@@ -15,7 +15,7 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label22"
|
||||
"text": "JCheckBox"
|
||||
"font": &SwingDerivedFont0 new com.jformdesigner.model.SwingDerivedFont( null, 0, 4, false )
|
||||
"$client.FlatLaf.styleClass": "h3"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 0 3 1"
|
||||
} )
|
||||
@@ -34,28 +34,28 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label23"
|
||||
"text": "unsel."
|
||||
"font": &SwingDerivedFont1 new com.jformdesigner.model.SwingDerivedFont( null, 0, -2, false )
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 2,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label28"
|
||||
"text": "selected"
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 2,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label24"
|
||||
"text": "unsel."
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 2,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label29"
|
||||
"text": "selected"
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 2,alignx center,growx 0"
|
||||
} )
|
||||
@@ -212,7 +212,7 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label27"
|
||||
"text": "JRadioButton"
|
||||
"font": #SwingDerivedFont0
|
||||
"$client.FlatLaf.styleClass": "h3"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 0 8 3 1"
|
||||
} )
|
||||
@@ -231,28 +231,28 @@ new FormModel {
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label25"
|
||||
"text": "unsel."
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 1 10,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label30"
|
||||
"text": "selected"
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 2 10,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label26"
|
||||
"text": "unsel."
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 3 10,alignx center,growx 0"
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label31"
|
||||
"text": "selected"
|
||||
"font": #SwingDerivedFont1
|
||||
"$client.FlatLaf.styleClass": "small"
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
"value": "cell 4 10,alignx center,growx 0"
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user