How to know the child JFrame is dispose

There are two JFrames, the first one is a parent, and the second is child and created by the parent. How to parent knows the child disposed.Because of the other member functions of parent shall be running while child is disposed.
[250 byte] By [oliverwga] at [2007-11-27 8:13:41]
# 1
does the parent have a reference to the child? This will be null when the child is no longer needed, correct? The parent could simply test for this. Or am I being overly simplistic?
petes1234a at 2007-7-12 19:58:08 > top of Java-index,Desktop,Core GUI APIs...
# 2
if I take a reference, how the parent knows the child is disposed? what listener shall i use?thank you
oliverwga at 2007-7-12 19:58:08 > top of Java-index,Desktop,Core GUI APIs...
# 3
hi!do you know about window listener ? if not then learn it, it will solve your problem i hope. http://www.java-tips.org/java-se-tips/javax.swing/how-to-use-windowlistener-for-closing-jframes.htmlregardsAniruddha
Aniruddha-Herea at 2007-7-12 19:58:08 > top of Java-index,Desktop,Core GUI APIs...
# 4
I have solved it by your help!Thank you!
oliverwga at 2007-7-12 19:58:08 > top of Java-index,Desktop,Core GUI APIs...