|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.WindowAdapter
com.darwinsys.swingui.WindowCloser
public class WindowCloser
A WindowCloser - watch for Window Closing events, and follow them up with setVisible(false), dispose(), and optionally ends (it all) with a System.exit(0).
Constructor Summary | |
---|---|
WindowCloser(java.awt.Window w)
Deprecated. Construct a WindowCloser that doesn't exit, just closes the window |
|
WindowCloser(java.awt.Window w,
boolean exit)
Deprecated. Construct a WindowCloser with control over whether it exits |
Method Summary | |
---|---|
void |
windowClosing(java.awt.event.WindowEvent e)
Deprecated. Called by AWT when the user tries to close the window |
Methods inherited from class java.awt.event.WindowAdapter |
---|
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowCloser(java.awt.Window w)
public WindowCloser(java.awt.Window w, boolean exit)
Method Detail |
---|
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
windowClosing
in class java.awt.event.WindowAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |