6987896: Modal dialogs resumes the calling thread before it's hidden
Reviewed-by: anthony
--- 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;
}