If you want a window to "disappear" usually it's better to use a dialog such as a JDialog or the related JOptionPane. Then to make it disappear you can simply call setVisible(false) or dispose() on...