The width of a Menu or MenuItem in a MenuBar is affected by the identifier, which is used to parse the mnemonic.
I.e.: the width of 'new MenuItem("_Datei");' is greater than 'new MenuItem("Datei");'. (see attached Screenshots)
The underscore character should not has an effect on the width of menus (or menu-items).
I.e.: the width of 'new MenuItem("_Datei");' is greater than 'new MenuItem("Datei");'. (see attached Screenshots)
The underscore character should not has an effect on the width of menus (or menu-items).
- duplicates
-
JDK-8087364 mnemonicParsing in FXML appends extra space to rendered Menu labels
-
- Closed
-
-
JDK-8090007 Button with Mnemonic is wider than one without
-
- Closed
-
-
JDK-8167998 Labeled ignores mnemonicParsing property when computing preferred size
-
- Closed
-