You could use frame.setVisible(false); There's probably a 'right' way to actually close it though