Locking window in java
Hi, 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 don't want the user to be able to click anywhere else until they have finished with the smaller GUI.
Hope this makes sense.
You want a modal dialog. You can use a JDialog, set modal, or a JOptionPane, all of which are modal. See api for each class. The tutorial has a section on how to make dialogs and each of the two api listings have a link to this page in the tutorial.