File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 10170
    
    8

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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listening and responding to events inside a Panel ?
 
Similar Threads
Calling method from another class
JPanel with some child components inside JList.
Aligning component from Right to Left
sharing a static jpanel
change card (cardlayout) in netbeans