jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes accessing dynamically generated Jbuttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

accessing dynamically generated Jbuttons

Carl John
Ranch Hand

Joined: Jun 14, 2010
Posts: 47

hi..!
i'm generating jbuttons dynamically inside a jpanel. i want to write event for those buttons. Please guide me to do this..! Thanks in advance..


CJohn
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19691
    
  10

I see you cross-posted this in the forum where questions about Swing should go. That was the right place to post it. So I'm going to close this one.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: accessing dynamically generated Jbuttons
 
It's not a secret anymore!