title: JavaFX : Adding a new node to Scene in java code when Scene is initially loaded from FXML
body: <p>How can I add a new node to the Scene in java code when Scene is initially loaded from FXML ?
  I have loaded from FXML as shown below</p>
  
  <pre><code>Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
  
  Scene scene = new Scene(root, 1000, 600, Color.DODGERBLUE);
  </code></pre>
  
  <p>Now say for example how do I add button to the scene in Java code?</p>