title: How to reload an Application in JavaFX?
body: <p>I have a small game which has <strong>New Game</strong> button. There are many variables which need reset when the <strong>New Game</strong> button is pressed. Is there any method which can easily reload the whole application or any alternative to refresh the scene, stage or variables? I just want to bring the application to it's initial stage when It's first loaded.</p>
  
  <p>I went through different topics on internet and read many questions and answers here also, but I there is no easy method to implement it. Most of the answers suggest to reuse the whole code or put the whole code in class and reload it. </p>
  
  <p>Questions reviewed:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/34788026/how-to-restart-a-javafx-application-when-a-button-is-clicked">How to restart a JavaFX application when button is clicked?</a></li>
  <li><a href="https://stackoverflow.com/questions/16102545/how-can-you-reload-or-refresh-a-scene-with-javafx-1-3">How can you reload or refresh a scene with javafx 1.3</a></li>
  </ul>