--- old/src/share/classes/java/awt/Component.java 2014-06-23 11:44:40.000000000 +0400 +++ new/src/share/classes/java/awt/Component.java 2014-06-23 11:44:40.000000000 +0400 @@ -67,7 +67,6 @@ import sun.awt.ConstrainableGraphics; import sun.awt.SubRegionShowable; import sun.awt.SunToolkit; -import sun.awt.WindowClosingListener; import sun.awt.CausedFocusEvent; import sun.awt.EmbeddedFrame; import sun.awt.dnd.SunDropTargetEvent; @@ -4866,16 +4865,6 @@ } break; - case WindowEvent.WINDOW_CLOSING: - if (toolkit instanceof WindowClosingListener) { - windowClosingException = ((WindowClosingListener) - toolkit).windowClosingNotify((WindowEvent)e); - if (checkWindowClosingException()) { - return; - } - } - break; - default: break; } @@ -4931,21 +4920,6 @@ } /* - * 8. Special handling for 4061116 : Hook for browser to close modal - * dialogs. - */ - if (id == WindowEvent.WINDOW_CLOSING && !e.isConsumed()) { - if (toolkit instanceof WindowClosingListener) { - windowClosingException = - ((WindowClosingListener)toolkit). - windowClosingDelivered((WindowEvent)e); - if (checkWindowClosingException()) { - return; - } - } - } - - /* * 9. Allow the peer to process the event. * Except KeyEvents, they will be processed by peer after * all KeyEventPostProcessors @@ -5052,20 +5026,6 @@ return false; } - boolean checkWindowClosingException() { - if (windowClosingException != null) { - if (this instanceof Dialog) { - ((Dialog)this).interruptBlocking(); - } else { - windowClosingException.fillInStackTrace(); - windowClosingException.printStackTrace(); - windowClosingException = null; - } - return true; - } - return false; - } - boolean areInputMethodsEnabled() { // in 1.2, we assume input method support is required for all // components that handle key events, but components can turn off