List of usage examples for java.awt.event WindowEvent WINDOW_LAST
int WINDOW_LAST
To view the source code for java.awt.event WindowEvent WINDOW_LAST.
Click Source Link
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_LAST) { System.out.println(WindowEvent.WINDOW_LAST); dispose();/* www . j a va 2 s .c o m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }