Simple question:
Can a swing frame be completely modal ( block all others windows ) ?
I tried the following, but I can still click on other apps windows ( like this browser )
JDialog myDialog = .... myDialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
Plase paste some code if this is possible.
JFrame is not designed to be modal. Use JDialog for it, but you will loose some JFrame functionality doing so. If you can’t live with the loss, you have to block the EventQueue and replace it with your own to only accept events from the blocking one.
See Creating Modal Internal Frames for an explanation using internal frames that should be applicable to JFrame also.
Edit: Oups, my answer seems a bit off, since your code example shows you are already using a Dialog subclass for this.