File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 9189

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

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: setMnemonic using a sting
It's not a secret anymore!