Commits

Jonathan Giles committed 5fbe8bf

Weird, comments were stripped from previous changeset diff.

Comments (0)

Files changed (1)

src/main/java/org/controlsfx/dialog/LightweightDialog.java

         
         lightweightDialog.setVisible(true);
         scene.setRoot(dialogStack);
+        
+        // This forces the lightweight dialog to be modal
         Toolkit.getToolkit().enterNestedEventLoop(this);
     }
     
         
         scene.setRoot(originalParent);
         
+        // stop the lightweight dialog from being modal (i.e. restart the 
+        // execution after it paused with the dialog being shown)
         Toolkit.getToolkit().exitNestedEventLoop(this, null);
     }