dcsimg
Shortcut Menu Keys
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alexander_K
Posted On:   Tuesday, March 5, 2002 02:20 AM

How can i setup F3 shortcut for JMenuItem?

Re: Shortcut Menu Keys

Posted By:   Sujata_Patil  
Posted On:   Thursday, March 7, 2002 02:50 PM

Assume your menuitem is mnuitmExit,
then you should do
mnuitmExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(114, 0, false));

Hope this answers ur question.
Cheers.
About | Sitemap | Contact