@Override
      public void eventDispatched(AWTEvent event) {
        if (event.getID() == MouseEvent.MOUSE_PRESSED) {
          dispose();
        }
      }
@Override
      public void eventDispatched(AWTEvent event)