Jump to content

Java Menu Help


1 post in this topic

Recommended Posts

Hello,

I am trying to make a program I wrote in my java class more "mac friendly". My problem is my accelerators only work when I pull down the JMenu the JMenuItem is in. I am running this in snow leopard with JavaSe-1.6 VM. They are working like mnemonics more than shortcuts.... Thanks a lot!

 

about = new JMenuItem("About");

about.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A((Toolkit.getDefaultToo

lkit().getMenuShortcutMask()))));

JMenu help = new JMenu("Help");

help.add(about);

Link to comment
Share on other sites

 Share

×
×
  • Create New...