java - Adding shortcut to JMenu -


i want add shortcut jmenu (not jmenuitem) don't know how... please, help...

try this:

    jmenu actionmenu = new jmenu("actions");     actionmenu.setmnemonic(keyevent.vk_a); 

this way can access pressing key alt + a.


Comments