title: Possible to create JavaFX Application object?
body: <p>Would it be possible to make an Application object from javaFX?</p>
  
  <pre><code>public class Constructor
  {
      public Constructor()
      {
          Application a = new Application()
          {
              @Override
              public void start(Stage window) throws Exception
              {
  
              }
          };
          a.launch();
      }
  }
  </code></pre>
  
  <p>It currently gives me this when I try to run it:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.RuntimeException: Error: class net.whiteautumn.lightcast.Constructor is not a subclass of javafx.application.Application</p>
  </blockquote>
  
  <p>This, I presume, is caused by the class <code>Constructor</code> not extending <code>Application</code>.
  Any way of getting around this or is that the only way to ever launch JavaFX applications?</p>
  
  <p>EDIT:
  I know how to start a javaFX application. What I want to to make an application and have it in an object. Is this possible or no?</p>