# HG changeset patch # User art # Date 1285671443 -14400 # Node ID a636784de38261fcd4f6fe362a51f2ad3499a10e # Parent 74a29718cc9e9ffea036175d67543b2b41c40f97 6987896: Modal dialogs resumes the calling thread before it's hidden Reviewed-by: anthony diff -r 74a29718cc9e -r a636784de382 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; }