}); } catch (Exception e) { e.printStackTrace(); }  try { Thread.sleep(2000); } catch (InterruptedException e) { } } }
                  public void run() {                    curFrame.doDefaultCloseAction();                  }