This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes listening to disposed child components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "listening to disposed child components" Watch "listening to disposed child components" New topic
Author

listening to disposed child components

Jhedzkie Skies
Ranch Hand

Joined: Oct 28, 2009
Posts: 118
hi there.


i am working on some frames when i got up to this issue...

i have a child panel added to a frame through a button...
the child panel added has input fields and a save button for saving the input and disposing the child panel...

question is, how can i dispose the frame at the same time with the child panel upon clicking the save button on the child panel?

ideas are very much appreciated. thanks a lot.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2177
    
    7
Jhedzkie Skies
Ranch Hand

Joined: Oct 28, 2009
Posts: 118
Rob Camick wrote:


thanks. works flawlessly.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: listening to disposed child components