|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.event.WindowAdapter | +--utilities.WindowCloser
Just handle WINDOW_CLOSING events. The constructor's argument determines whether to exit the program when the window is closed.
Constructor Summary | |
WindowCloser()
Exit when the window is closed. |
|
WindowCloser(boolean exitOnClose)
Exit when the window is closed if the argument is true. |
Method Summary | |
void |
windowClosing(java.awt.event.WindowEvent e)
A WINDOW_CLOSING event has been received. |
Methods inherited from class java.awt.event.WindowAdapter |
windowActivated,
windowClosed,
windowDeactivated,
windowDeiconified,
windowIconified,
windowOpened |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public WindowCloser()
public WindowCloser(boolean exitOnClose)
Method Detail |
public void windowClosing(java.awt.event.WindowEvent e)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |