mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +03:00
FlatHtmlTest: fixed labels and added HTML tooltips
This commit is contained in:
@@ -86,6 +86,9 @@ public class FlatHtmlTest
|
|||||||
label10 = new JLabel();
|
label10 = new JLabel();
|
||||||
radioButtonMenuItem1 = new JRadioButtonMenuItem();
|
radioButtonMenuItem1 = new JRadioButtonMenuItem();
|
||||||
radioButtonMenuItem2 = new JRadioButtonMenuItem();
|
radioButtonMenuItem2 = new JRadioButtonMenuItem();
|
||||||
|
label14 = new JLabel();
|
||||||
|
label15 = new JLabel();
|
||||||
|
label16 = new JLabel();
|
||||||
label1 = new JLabel();
|
label1 = new JLabel();
|
||||||
scrollPane15 = new JScrollPane();
|
scrollPane15 = new JScrollPane();
|
||||||
editorPane1 = new JEditorPane();
|
editorPane1 = new JEditorPane();
|
||||||
@@ -146,6 +149,7 @@ public class FlatHtmlTest
|
|||||||
"[]" +
|
"[]" +
|
||||||
"[]" +
|
"[]" +
|
||||||
"[]" +
|
"[]" +
|
||||||
|
"[]" +
|
||||||
"[]"));
|
"[]"));
|
||||||
|
|
||||||
//---- label5 ----
|
//---- label5 ----
|
||||||
@@ -173,7 +177,7 @@ public class FlatHtmlTest
|
|||||||
panel1.add(button2, "cell 2 1");
|
panel1.add(button2, "cell 2 1");
|
||||||
|
|
||||||
//---- label11 ----
|
//---- label11 ----
|
||||||
label11.setText("text");
|
label11.setText("JToggleButton:");
|
||||||
panel1.add(label11, "cell 0 2");
|
panel1.add(label11, "cell 0 2");
|
||||||
|
|
||||||
//---- toggleButton1 ----
|
//---- toggleButton1 ----
|
||||||
@@ -187,7 +191,7 @@ public class FlatHtmlTest
|
|||||||
panel1.add(toggleButton2, "cell 2 2");
|
panel1.add(toggleButton2, "cell 2 2");
|
||||||
|
|
||||||
//---- label12 ----
|
//---- label12 ----
|
||||||
label12.setText("text");
|
label12.setText("JCheckBox:");
|
||||||
panel1.add(label12, "cell 0 3");
|
panel1.add(label12, "cell 0 3");
|
||||||
|
|
||||||
//---- checkBox1 ----
|
//---- checkBox1 ----
|
||||||
@@ -199,7 +203,7 @@ public class FlatHtmlTest
|
|||||||
panel1.add(checkBox2, "cell 2 3");
|
panel1.add(checkBox2, "cell 2 3");
|
||||||
|
|
||||||
//---- label13 ----
|
//---- label13 ----
|
||||||
label13.setText("text");
|
label13.setText("JRadioButton:");
|
||||||
panel1.add(label13, "cell 0 4");
|
panel1.add(label13, "cell 0 4");
|
||||||
|
|
||||||
//---- radioButton1 ----
|
//---- radioButton1 ----
|
||||||
@@ -265,6 +269,20 @@ public class FlatHtmlTest
|
|||||||
radioButtonMenuItem2.setText("Some text");
|
radioButtonMenuItem2.setText("Some text");
|
||||||
radioButtonMenuItem2.setSelected(true);
|
radioButtonMenuItem2.setSelected(true);
|
||||||
panel1.add(radioButtonMenuItem2, "cell 2 8");
|
panel1.add(radioButtonMenuItem2, "cell 2 8");
|
||||||
|
|
||||||
|
//---- label14 ----
|
||||||
|
label14.setText("JToolTip:");
|
||||||
|
panel1.add(label14, "cell 0 9");
|
||||||
|
|
||||||
|
//---- label15 ----
|
||||||
|
label15.setText("(move mouse here)");
|
||||||
|
label15.setToolTipText("<html>Some <b>Bold</b> Text");
|
||||||
|
panel1.add(label15, "cell 1 9");
|
||||||
|
|
||||||
|
//---- label16 ----
|
||||||
|
label16.setText("(move mouse here)");
|
||||||
|
label16.setToolTipText("Some text");
|
||||||
|
panel1.add(label16, "cell 2 9");
|
||||||
}
|
}
|
||||||
add(panel1, "cell 4 0 1 3,aligny top,growy 0");
|
add(panel1, "cell 4 0 1 3,aligny top,growy 0");
|
||||||
|
|
||||||
@@ -379,6 +397,9 @@ public class FlatHtmlTest
|
|||||||
private JLabel label10;
|
private JLabel label10;
|
||||||
private JRadioButtonMenuItem radioButtonMenuItem1;
|
private JRadioButtonMenuItem radioButtonMenuItem1;
|
||||||
private JRadioButtonMenuItem radioButtonMenuItem2;
|
private JRadioButtonMenuItem radioButtonMenuItem2;
|
||||||
|
private JLabel label14;
|
||||||
|
private JLabel label15;
|
||||||
|
private JLabel label16;
|
||||||
private JLabel label1;
|
private JLabel label1;
|
||||||
private JScrollPane scrollPane15;
|
private JScrollPane scrollPane15;
|
||||||
private JEditorPane editorPane1;
|
private JEditorPane editorPane1;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ 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 0,hidemode 3"
|
"$layoutConstraints": "insets 0,hidemode 3"
|
||||||
"$columnConstraints": "[fill][fill][fill]"
|
"$columnConstraints": "[fill][fill][fill]"
|
||||||
"$rowConstraints": "[][][][][][][][][]"
|
"$rowConstraints": "[][][][][][][][][][]"
|
||||||
} ) {
|
} ) {
|
||||||
name: "panel1"
|
name: "panel1"
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
@@ -77,7 +77,7 @@ new FormModel {
|
|||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "label11"
|
name: "label11"
|
||||||
"text": "text"
|
"text": "JToggleButton:"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 0 2"
|
"value": "cell 0 2"
|
||||||
} )
|
} )
|
||||||
@@ -97,7 +97,7 @@ new FormModel {
|
|||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "label12"
|
name: "label12"
|
||||||
"text": "text"
|
"text": "JCheckBox:"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 0 3"
|
"value": "cell 0 3"
|
||||||
} )
|
} )
|
||||||
@@ -115,7 +115,7 @@ new FormModel {
|
|||||||
} )
|
} )
|
||||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
name: "label13"
|
name: "label13"
|
||||||
"text": "text"
|
"text": "JRadioButton:"
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 0 4"
|
"value": "cell 0 4"
|
||||||
} )
|
} )
|
||||||
@@ -207,6 +207,26 @@ new FormModel {
|
|||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 2 8"
|
"value": "cell 2 8"
|
||||||
} )
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "label14"
|
||||||
|
"text": "JToolTip:"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 0 9"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "label15"
|
||||||
|
"text": "(move mouse here)"
|
||||||
|
"toolTipText": "<html>Some <b>Bold</b> Text"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 1 9"
|
||||||
|
} )
|
||||||
|
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||||
|
name: "label16"
|
||||||
|
"text": "(move mouse here)"
|
||||||
|
"toolTipText": "Some text"
|
||||||
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
|
"value": "cell 2 9"
|
||||||
|
} )
|
||||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||||
"value": "cell 4 0 1 3,aligny top,growy 0"
|
"value": "cell 4 0 1 3,aligny top,growy 0"
|
||||||
} )
|
} )
|
||||||
|
|||||||
Reference in New Issue
Block a user