changeset 2912:40fa33254fc6

6987896: Modal dialogs resumes the calling thread before it's hidden Reviewed-by: anthony
author art
date Tue, 28 Sep 2010 14:57:23 +0400
parents d21c9804c512
children 6994facc6a8b
files src/share/classes/java/awt/Dialog.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/Dialog.java	Mon Sep 27 17:38:57 2010 +0400
+++ b/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;
                         }