Modal JDialog without blocking execution

java, jdialog, modal-dialog, swing

Solution

Yes it can be done .

dlg.setModal(false);

or

dlg.setModalityType(Dialog.ModalityType.MODELESS);

where dlg is instance of your JDialog .

Problem

Is there a way how to use a dialog in Swing which prohibits any gui activity under it but at the same time DOES NOT stop execution on the thread where it was set to visible?

Original source

Related problems