73challenger Posted December 9, 2009 Share Posted December 9, 2009 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 More sharing options...
Recommended Posts