• Post Reply Bookmark Topic Watch Topic
  • New Topic

parent-child window relationship  RSS feed

 
jyothsna kumari
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

The problem is....
I have a parent window from which i open a child window.This child window has got a name.So i am able to close the child window when the parent window gets closed.
Now my problem is when i traverse to second window from parent window after opening a child window and here if i try to close the parent window i am not able to close the child window by accessing it through its name as the relation is lost.

Can anybody suggest me any way by which i can close my child window when parent window is closed.

Thanks,
Jyothsna
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some people will put a function on the child window that checks to make sure that the parent is still there and set it on an interval.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!