List of usage examples for java.awt.event WindowEvent getID
public int getID()
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_ICONIFIED) { System.out.println(WindowEvent.WINDOW_ICONIFIED); dispose();/*from w w w . jav a2 s . co m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_ACTIVATED) { System.out.println(WindowEvent.WINDOW_ACTIVATED); dispose();//from www .j av a 2 s .com System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.out.println(WindowEvent.WINDOW_CLOSING); dispose();/*w ww. j a v a 2s . c o m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_GAINED_FOCUS) { System.out.println(WindowEvent.WINDOW_GAINED_FOCUS); dispose();/*from w ww.j a va 2s . c o m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_DEICONIFIED) { System.out.println(WindowEvent.WINDOW_DEICONIFIED); dispose();/*from w w w . ja va2s.co m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_OPENED) { System.out.println(WindowEvent.WINDOW_OPENED); dispose();/* ww w . j av a2 s .co m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSED) { System.out.println(WindowEvent.WINDOW_CLOSED); dispose();//w w w. ja v a2 s. c om System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_LOST_FOCUS) { System.out.println(WindowEvent.WINDOW_LOST_FOCUS); dispose();//from www .j a v a2s .c om System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_STATE_CHANGED) { System.out.println(WindowEvent.WINDOW_STATE_CHANGED); dispose();/*from ww w.j av a 2 s .c o m*/ System.exit(0); } super.processWindowEvent(e); // Pass on the event }
From source file:Main.java
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_LAST) { System.out.println(WindowEvent.WINDOW_LAST); dispose();//from ww w . ja v a 2 s .c o m System.exit(0); } super.processWindowEvent(e); // Pass on the event }