src/share/classes/java/awt/Window.java

Print this page

        

*** 1198,1207 **** --- 1198,1208 ---- } finally { disposing = false; } } } + boolean fireWindowClosedEvent = isDisplayable(); DisposeAction action = new DisposeAction(); if (EventQueue.isDispatchThread()) { action.run(); } else {
*** 1218,1229 **** --- 1219,1232 ---- } } // Execute outside the Runnable because postWindowEvent is // synchronized on (this). We don't need to synchronize the call // on the EventQueue anyways. + if (fireWindowClosedEvent) { postWindowEvent(WindowEvent.WINDOW_CLOSED); } + } /* * Should only be called while holding the tree lock. * It's overridden here because parent == owner in Window, * and we shouldn't adjust counter on owner