title: Running javafx application thread more than once
body: <p>I am working on an java application where I'm using java swing forms and javafx FXML stage.I am new to javafx.Now in my app I'm calling javafx fxml stage having controller,from a swing form.I'm calling the fxml stage from the swing form on clicking a button like this----
                       <strong>Application.launch(MyFxml.class);</strong></p>
  
  <p>This works fine.But when I go back again from the fxml stage to the swing form by clicking a button in the following way and try to access the javafx fxml stage I'm getting exceptions.
                               <strong>new MySwingform().setVisible(true);</strong></p>
  
  <p>The following code snippet is used to call up the swing form---</p>
  
  <pre><code>    public void goBack(ActionEvent ev){
  
      Platform.exit();
  
      new MySwingform().setVisible(true);
  }
  </code></pre>
  
  <p>The exception I'm getting is "Application launch must not be called more than once".So,how to get rid of this so that we can run the javafx application thread over and over again without any error?Thanks in advance for your useful suggestions.</p>