public void windowClosing (WindowEvent e) {
		//Do nothing
		if(winAction == 0) {
			setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
		}
		//close
		else if(winAction == 1) {
			setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
			closeAll();
		}
		//hide
		else if(winAction == 2) {
			setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
		}
	}