aspose file tools
The moose likes Java in General and the fly likes Making a child window modal Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Making a child window modal
 
Similar Threads
Calling parent function when user closes child window
keeping pop up window active until clicked
Modal dialog for a popup
parent window notification
parent window notification