public void showWin() {
		setSize(800, 600); // set frame size
		setTitle(title);
		setJMenuBar(menuBar);
		setLocationRelativeTo(null);
		setVisible(true);
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});
	}