title: How do I start one thread for my code and one for a JavaFX Application?
body: <p>I'm trying to run a program using JavaFX. If I was using Swing, I would have one class started by the main method, and have it build the GUI class. That would give me 2 threads, normal thread for an application, and the EventQueue. That would prevent blocking the UI work.</p>
  
  <p>So, I tried to have the class created in the static main method construct the Application class, and then launch it. I got a RuntimeException because the program calling the launch method was not a subclass of Application. </p>
  
  <p>Is there a way to have separation of threads, or does everything have to work inside a the thread given to an Application class?</p>