提交 c4ab6fab 编写于 作者: M malenkov

8043456: KSS: javax.swing.plaf.basic.BasicInternalFrameTitlePane#postClosingEvent

Reviewed-by: alexsch, serb
上级 d6b2cad8
...@@ -379,15 +379,11 @@ public class BasicInternalFrameTitlePane extends JComponent ...@@ -379,15 +379,11 @@ public class BasicInternalFrameTitlePane extends JComponent
InternalFrameEvent e = new InternalFrameEvent( InternalFrameEvent e = new InternalFrameEvent(
frame, InternalFrameEvent.INTERNAL_FRAME_CLOSING); frame, InternalFrameEvent.INTERNAL_FRAME_CLOSING);
// Try posting event, unless there's a SecurityManager. // Try posting event, unless there's a SecurityManager.
if (JInternalFrame.class.getClassLoader() == null) { try {
try { Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(e);
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(e); } catch (SecurityException se) {
return; frame.dispatchEvent(e);
} catch (SecurityException se) {
// Use dispatchEvent instead.
}
} }
frame.dispatchEvent(e);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册