Skip to content

A minimal example showing "underscore" problem in `javafx.scene.control.MenuItem`

Notifications You must be signed in to change notification settings

isghe/jfx-menuitem-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jfx-menuitem-problem

Test showing the underscore problem in javafx.scene.control.MenuItem

Version:

  • macOS:
    • macOS Catalina 10.15.5
    • Java 1.8.0_66, JavaFX 8.0.66
  • Linux:
    • Oracle Linux Server 7.6
    • Java 11.07, JavaFX 11.0.2

On macOS:

jfx-menuitem-problem-macOS.png

On Linux:

jfx-menuitem-problem-linux.png

The underscore problem can be resolved setting the MenuItem.mnemonicParsingProperty to false:

	menuItem.setMnemonicParsing (false); // to avoid underscore problem

About

A minimal example showing "underscore" problem in `javafx.scene.control.MenuItem`

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published