/** handler window event */
@Override
protected void processWindowEvent(final WindowEvent pEvent) {
if (pEvent.getID() == WindowEvent.WINDOW_CLOSING) {
// 在此加上你想要在关闭前的所有代码.
} else {
super.processWindowEvent(pEvent);
}
}
@Override
protected void processWindowEvent(final WindowEvent pEvent) {
if (pEvent.getID() == WindowEvent.WINDOW_CLOSING) {
// 在此加上你想要在关闭前的所有代码.
} else {
super.processWindowEvent(pEvent);
}
}