Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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.
Consider Paul's rocket mass heater.
subject: Making a child window modal