In the NetBeans 6.9 IDE, if you create a
New Project >> Java >> Java Desktop Application
and run it, you will find that the menu items have mnemonics, but only after ALT
is pressed.
(The netbeans program itself uses this style of menu.)
However, if you create a new File >> Swing GUI Forms >> JFrame Form
, and add a simple menubar with mnemonics, then run the JFrame, the mnemonics will always appear without having to press ALT
. This is what I would prefer.
(Firefox uses this style of menu)
My thoughts are that the org.jdesktop.application
overrides the default setting, but that's just a guess. Anyone know how to make a SingleFrameApplication not require ALT
to be pressed?
Thanks.
Edit: The problem was found to be that JFrame and JDesktop use different default Look and Feels