title: In JavaFX & Scene Builder, how do I open a new window when clicking a button?
body: <p>I've already got the FXML file for the second window, and I'm lost from here. How do I get my program to open the new window and FXML after I press a button?</p>
  
  <p>This is how I have my first window set up </p>
  
  <pre><code>@Override 
  public void start(Stage primaryStage) throws Exception { 
      Parent root = FXMLLoader.load(getClass().getResource("Main.fxml")); 
      Scene scene = new Scene(root); primaryStage.setResizable(false);    
      primaryStage.setScene(scene); 
      primaryStage.setTitle("Hello World!"); 
      primaryStage.show(); 
  } 
  </code></pre>
  
  <p>So I could copy that but change the values for my new window? Then how would I link that for my button? I've tried some Event handlers but to no avail.</p>