6987896: Modal dialogs resumes the calling thread before it's hidden
authorart
Tue, 28 Sep 2010 14:57:23 +0400
changeset 6636 a636784de382
parent 6635 74a29718cc9e
child 6637 64ecd501905b
6987896: Modal dialogs resumes the calling thread before it's hidden Reviewed-by: anthony
jdk/src/share/classes/java/awt/Dialog.java
--- a/jdk/src/share/classes/java/awt/Dialog.java	Mon Sep 27 17:38:57 2010 +0400
+++ b/jdk/src/share/classes/java/awt/Dialog.java	Tue Sep 28 14:57:23 2010 +0400
@@ -1068,7 +1068,7 @@
                     modalityPushed();
                     try {
                         EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue();
-                        secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 5000);
+                        secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 0);
                         if (!secondaryLoop.enter()) {
                             secondaryLoop = null;
                         }