frame.setVisible( false );
frame.dispose();
frame = null;