mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
Menus: support HTML in new layout (issue #3)
This commit is contained in:
@@ -197,7 +197,7 @@ public class FlatMenusTest
|
||||
panel1.add(checkBoxMenuItemLabel, "cell 0 2");
|
||||
|
||||
//---- checkBoxMenuItem1 ----
|
||||
checkBoxMenuItem1.setText("enabled");
|
||||
checkBoxMenuItem1.setText("<html>en<b>abl</b>ed</html>");
|
||||
checkBoxMenuItem1.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));
|
||||
checkBoxMenuItem1.setMnemonic('A');
|
||||
panel1.add(checkBoxMenuItem1, "cell 1 2");
|
||||
|
||||
@@ -92,7 +92,7 @@ new FormModel {
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JCheckBoxMenuItem" ) {
|
||||
name: "checkBoxMenuItem1"
|
||||
"text": "enabled"
|
||||
"text": "<html>en<b>abl</b>ed</html>"
|
||||
"accelerator": &KeyStroke0 static javax.swing.KeyStroke getKeyStroke( 112, 0, false )
|
||||
"mnemonic": 65
|
||||
}, new FormLayoutConstraints( class net.miginfocom.layout.CC ) {
|
||||
|
||||
Reference in New Issue
Block a user