File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

key listeners for dynamically created buttons

 
C. Alan
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the javadoc-page: Constant Field Values, you find:


hope that helps.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic