| Author |
set F11 key as mnemonic for jButton
|
Carl John
Ranch Hand
Joined: Jun 14, 2010
Posts: 34
|
|
|
It is possible to set F11 key as Jbutton mnemonic ...? If so ,Please guide me..!
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
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 Java tutorial for more information.
* JMenuItem extends AbstractButton so technically it's a button
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: set F11 key as mnemonic for jButton
|
|
|