title: Launching a TornadoFX App from (an existing) Kotlin program
body: <pre><code>fun main(args: Array&lt;String&gt;) {
  
      HelloWorldApp().launch()
  }
  
  fun App.launch() {
      JFXPanel()
      Platform.runLater({
          start(Stage())
      })
  }
  </code></pre>
  
  <p>This is what I do right now. Is there a better? more succinct way?</p>
  
  <p>Is it safe to run multiple different TornadoFX apps from within the same kotlin program this way? I read something somewhere about a global variable so I'm wondering if only 1 is allowed/recommended.</p>