This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70023ae
commit 5015bbe
Showing
12 changed files
with
410 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* @(#)Dialog.java 1.83 01/12/03 | ||
* @(#)Dialog.java 1.85 03/02/14 | ||
* | ||
* Copyright 2002 Sun Microsystems, Inc. All rights reserved. | ||
* Copyright 2003 Sun Microsystems, Inc. All rights reserved. | ||
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | ||
*/ | ||
package java.awt; | ||
|
@@ -62,7 +62,7 @@ | |
* @see WindowEvent | ||
* @see Window#addWindowListener | ||
* | ||
* @version 1.83, 12/03/01 | ||
* @version 1.85, 02/14/03 | ||
* @author Sami Shaio | ||
* @author Arthur van Hoff | ||
* @since JDK1.0 | ||
|
@@ -519,6 +519,18 @@ public void show() { | |
enqueueKeyEvents(time, predictedFocusOwner); | ||
|
||
if (Toolkit.getEventQueue().isDispatchThread()) { | ||
/* | ||
* dispose SequencedEvent we are dispatching on current | ||
* AppContext, to prevent us from hang. | ||
* | ||
* BugId 4531693 ([email protected]) | ||
*/ | ||
SequencedEvent currentSequencedEvent = KeyboardFocusManager. | ||
getCurrentKeyboardFocusManager().getCurrentSequencedEvent(); | ||
if (currentSequencedEvent != null) { | ||
currentSequencedEvent.dispose(); | ||
} | ||
|
||
EventDispatchThread dispatchThread = | ||
(EventDispatchThread)Thread.currentThread(); | ||
dispatchThread.pumpEventsForHierarchy(new Conditional() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.