public void mouseReleased(MouseEvent evt) {
			if (mousein == 1 && evt.getSource()==buy){
				settle();
				calcStats();
				refresh();
			}
			if (mousein == 2 && evt.getSource()==ok){
				settle();
				setVisible(false); //you can't see me!
				dispose(); //Destroy the JFrame object
			}
			if (mousein == 3 && evt.getSource()==close){
				setVisible(false); //you can't see me!
				dispose(); //Destroy the JFrame object
			}
		}