This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes parent window notification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "parent window notification" Watch "parent window notification" New topic
Author

parent window notification

Duane Riech
Ranch Hand

Joined: Feb 27, 2003
Posts: 52
I have a child window which modifies a record
displayed by the parent window ( in a JTable). I
would like to post an event to notify the parent
when the child window is closed so the parent could update the JTable data.
Is there an event that the child can post to notify the parent when the child window closes??

Thanks in advance
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Yes, the parent window can implement WindowListener and the correct method that is triggered when a window closes. Then when the parent creates the child, it should register itself as a WindowListener to said child.


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parent window notification
 
Similar Threads
parent window notification
JTable(!!!)
Question on JTable
jtable
help unload