File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Making a child window modal" Watch "Making a child window modal" New topic

Making a child window modal

L Richardson

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"

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"

Joined: Sep 29, 2000
Posts: 8521
Java. This IS a java forum. We have a different forum called "HTML and JavaScript" for JavaScript questions.
Don't get me started about those stupid light bulbs.
subject: Making a child window modal