From 824b310afbaed2f86f265e6cfaba471669dc6a49 Mon Sep 17 00:00:00 2001 From: art Date: Tue, 28 Sep 2010 14:57:23 +0400 Subject: [PATCH] 6987896: Modal dialogs resumes the calling thread before it's hidden Reviewed-by: anthony --- jdk/src/share/classes/java/awt/Dialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/awt/Dialog.java b/jdk/src/share/classes/java/awt/Dialog.java index 3e2effd1dc..36a3502e3b 100644 --- a/jdk/src/share/classes/java/awt/Dialog.java +++ b/jdk/src/share/classes/java/awt/Dialog.java @@ -1068,7 +1068,7 @@ public class Dialog extends Window { modalityPushed(); try { EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue(); - secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 5000); + secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 0); if (!secondaryLoop.enter()) { secondaryLoop = null; } -- GitLab