Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Swing / AWT / SWT and the fly likes setMnemonic using a sting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "setMnemonic using a sting" Watch "setMnemonic using a sting" New topic

setMnemonic using a sting

Craig Parsons
Ranch Hand

Joined: Jan 28, 2004
Posts: 40
I know to use the setMnemonic I type
but what if I have have an array of buttons labeled 1 thru 9. How can I use setMnemonic to give each of them a numbered hot key (1 - 9) without having to set each button individually.

Joe Ess

Joined: Oct 29, 2001
Posts: 9074

[ January 30, 2004: Message edited by: Joe Ess ]

[How To Ask Questions On JavaRanch]
Have you tried LearnNowOnline?
subject: setMnemonic using a sting