Java JMenuItem Accelator Snow Leopard
Posted
by Jeremy McGee
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy McGee
Published on 2009-12-09T19:34:05Z
Indexed on
2010/06/10
14:02 UTC
Read the original article
Hit count: 259
about = new JMenuItem("About");
about.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A((Toolkit.getDefaultToolkit().getMenuShortcutMask()))));
JMenu help = new JMenu("Help");
help.add(about);
I was wondering why my aaccelerators were not working. I am running this in snow leopard with JavaSe-1.6 VM. They do work if I pull the menu down then try the key sequence. Thanks
© Stack Overflow or respective owner