Shevek (shevek) wrote,
Shevek
shevek

I need to be put down.

ExecutorService queue = Executors.newSingleThreadExecutor();
...
queue.submit(... boot actions ...);
queue.submit(... boot actions ...);
...
queue.submit(new Runnable() {
  public void run() {
    if (!EventQueue.isDispatchThread()) {
      EventQueue.invokeLater(Runnable.this);
      return;
    }
    .... // post-boot gui actions, e.g. setStatus("OK");
  }
});
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 4 comments