Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listening and responding to events inside a Panel ?

 
David Blaine
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a MainPanel. It contains SubPanel1, SubPanel2 etc. SubPanel can have any combination of JComponents like buttons, radio buttons, text boxes etc. One SubPanel may or may not be the same as another.
How do I make the MainPanel listen and respond to the actions taking place inside the SubPanels ?

Question also asked on stack overflow
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recommended reading : http://docs.oracle.com/javase/tutorial/uiswing/events/index.html

UI questions are best suited on the GUI forum. Moving thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic