title: Getting application instance in javafx
body: <p>How can I get the application instance when using javafx?</p>
  
  <p>Normally you launch an application this way:</p>
  
  <pre><code>public class LoginForm {
  
      public static void main(String[] args) {
          LoginApplication.launch(LoginApplication.class, args);
      }
  
  }
  </code></pre>
  
  <p>The method launch does not return an instance of application.
  Is there a way I could get the instance?</p>