提交 d199484c 编写于 作者: R rkennke

6809233: Modal dialog blocks calling thread after it is hidden and disposed

Summary: Send WakingRunnable to toolkit to prevent early cleanup.
Reviewed-by: art, son
上级 5abab90f
...@@ -1226,7 +1226,7 @@ public class Dialog extends Window { ...@@ -1226,7 +1226,7 @@ public class Dialog extends Window {
synchronized (getTreeLock()) { synchronized (getTreeLock()) {
if (keepBlockingEDT) { if (keepBlockingEDT) {
keepBlockingEDT = false; keepBlockingEDT = false;
PeerEvent wakingEvent = new PeerEvent(this, new WakingRunnable(), PeerEvent.PRIORITY_EVENT); PeerEvent wakingEvent = new PeerEvent(getToolkit(), new WakingRunnable(), PeerEvent.PRIORITY_EVENT);
AppContext curAppContext = AppContext.getAppContext(); AppContext curAppContext = AppContext.getAppContext();
if (showAppContext != curAppContext) { if (showAppContext != curAppContext) {
// Wake up event dispatch thread on which the dialog was // Wake up event dispatch thread on which the dialog was
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册