hide();
setVisible(false);
          public void actionPerformed(ActionEvent e) {            selectedIndex = -1;            done = true;            synchronized(monitor) {              monitor.notify();            }            hide();            dispose();          }