Jump to content

Java Menu Help


  • Please log in to reply
No replies to this topic

#1
73challenger

73challenger

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 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);





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy