A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Swing / AWT / SWT
set F11 key as mnemonic for jButton
Joined: Jun 14, 2010
Oct 18, 2010 04:43:04
It is possible to set F11 key as Jbutton mnemonic ...? If so ,Please guide me..!
Joined: Oct 27, 2005
Oct 18, 2010 05:13:19
As a mnemonic, no. Mnemonics are keys that will be activated when you press Alt. For instance, 'X' would be the mnemonic if Alt+X would activate the button.
What you want is what is an accelerator in menu items. This doesn't exist for other* buttons, but you can use key bindings instead. Check out the
tutorial for more information.
so technically it's a button
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: set F11 key as mnemonic for jButton
Underline first character of a JButton?
shortcut key for label
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015