Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Sign in to follow this  
73challenger

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);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×