protected void processWindowEvent(WindowEvent e) {  super.processWindowEvent(e);  switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); dispose(); break; } case HIDE_ON_CLOSE : { setVisible(false); break; } case DO_NOTHING_ON_CLOSE : break; } break; }  case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED :
protected  void processWindowEvent(WindowEvent e) {  super.processWindowEvent(e);  switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case DISPOSE_ON_CLOSE: { System.out.println("user requested dispose on close"); dispose();
	protected void processWindowEvent(WindowEvent e) {		//	System.out.println("PROCESS_WIN_EV-1: " + e);		super.processWindowEvent(e);		//	System.out.println("PROCESS_WIN_EV-2: " + e);		switch (e.getID()) {			case WindowEvent.WINDOW_CLOSING :				{					switch (close_action) {						case DISPOSE_ON_CLOSE :							{								System.out.println("user requested dispose on close");								dispose();								break;							}						case HIDE_ON_CLOSE :							{								setVisible(false);								break;							}						case DO_NOTHING_ON_CLOSE :							break;					}					break;				}			case WindowEvent.WINDOW_CLOSED :			case WindowEvent.WINDOW_OPENED :			case WindowEvent.WINDOW_ICONIFIED :			case WindowEvent.WINDOW_DEICONIFIED :			case WindowEvent.WINDOW_ACTIVATED :			case WindowEvent.WINDOW_DEACTIVATED :				break;		}	}