wood burning stoves 2.0*
The moose likes Java in General and the fly likes Making a child window modal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Making a child window modal" Watch "Making a child window modal" New topic
Author

Making a child window modal

L Richardson
Greenhorn

Joined: May 22, 2001
Posts: 9
I am trying to use the open.window to get a new window
how can I make it modal so that I can still access the parent window thru code but cant switch focus to parent window until closing child window.

Thank you
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Make the parent window a Frame and make the child window a Dialog. It has a constructor:
Dialog(Frame owner, boolean modal)


"JavaRanch, where the deer and the Certified play" - David O'Meara
David Shepherd
Ranch Hand

Joined: Mar 02, 2001
Posts: 35
Are you talking about Javascript or Java?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Java. This IS a java forum. We have a different forum called "HTML and JavaScript" for JavaScript questions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making a child window modal