@Override
  public void exit() {
    SwingUtilities.invokeLater(() -> {
      var app = ApplicationManager.getApplication();
      app.invokeLater(() -> app.exit(true, true, false), ModalityState.current());
    });
  }
@Override
  public void exit()