aspose file tools
The moose likes Java in General and the fly likes key listeners for dynamically created buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "key listeners for dynamically created buttons" Watch "key listeners for dynamically created buttons" New topic
Author

key listeners for dynamically created buttons

C. Alan
Ranch Hand

Joined: Dec 17, 2004
Posts: 30
I have a radioButton group that has buttons assigned to it dynamically. I need to assign a mnemonic to each key, but I don't see that I can do that dynamically.

I can see how to hardcode it:

Is it possible to do that when we don't know what the button is going to be ahead of time? Or in other words, can we do something like:

Or would that be just too easy.

[ January 27, 2005: Message edited by: C. Alan ]
[ January 27, 2005: Message edited by: C. Alan ]

<a href="http://www.security-forums.com/forum/viewforum.php?f=48" target="_blank" rel="nofollow">Malware Removal</a> - Get your system running like new again.
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

If you look at the javadoc-page: Constant Field Values, you find:


hope that helps.


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: key listeners for dynamically created buttons
 
Similar Threads
Map problem
Dynamic RadioButton Listeners
Generating classes
Swings
Indexed property