View Full Version : locking a window in Java Swing
04-07-2005, 12:52 PM
Is there a way to lock a window in java swing, what i simply mean is i have a small GUI that appears in front of a larger one, and i dont want the user to be able to click anywhere else untill they have finished with the smaller gui.
hope this makes sense.
thanks in advance
Small dialog windows are modal (they block all other windows), but Im not sure about regular windows.
04-07-2005, 03:31 PM
Yeah, use JDialog instead of JFrame for the smaller window. Then pass the owner JFrame to the JDialog constructor.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.