Meaningless Drivel is fun!*
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
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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