|
-
May 23rd, 2005, 09:59 PM
#1
Thread Starter
Fanatic Member
Shortcut
Need help on how to doing "Ctrl-S" as shortcut on a JMenuItem. Thanks.
Last edited by nebulom; May 24th, 2005 at 04:12 AM.
-
May 23rd, 2005, 11:06 PM
#2
Dazed Member
Re: Shortcut
If my memory serves me correct i think the accelerator needs to be set(via of course a set method).
-
May 24th, 2005, 04:12 AM
#3
Thread Starter
Fanatic Member
Re: Shortcut
Thanks, here's a code btw if anyone might find useful.
mnunew.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,KeyEvent.CTRL_MASK));
where mnunew is a JMenuItem+
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|