aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Listening and responding to events inside a Panel ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Listening and responding to events inside a Panel ?" Watch "Listening and responding to events inside a Panel ?" New topic
Author

Listening and responding to events inside a Panel ?

David Blaine
Ranch Hand

Joined: Mar 23, 2013
Posts: 70
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

Joined: Jul 26, 2007
Posts: 10535
    
    9

Recommended reading : http://docs.oracle.com/javase/tutorial/uiswing/events/index.html

UI questions are best suited on the GUI forum. Moving thread.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Listening and responding to events inside a Panel ?