File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes To set the F1 key as shortcut for menuitem Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "To set the F1 key as shortcut for menuitem Help" Watch "To set the F1 key as shortcut for menuitem Help" New topic
Author

To set the F1 key as shortcut for menuitem Help

VenuArchana Aradhyula
Greenhorn

Joined: Sep 02, 2008
Posts: 13
Hi

I use a menu item Help in my application. I want to set the short cut key as F1 to this menu item .
That is when i press F1 key the action should be performed for this menu item.

Thanks
Archana.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

What have you got so far?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
VenuArchana Aradhyula
Greenhorn

Joined: Sep 02, 2008
Posts: 13
Please suggest how to set it .
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: To set the F1 key as shortcut for menuitem Help