title: Block parent stage until child stage closes
body: <p>I have a controller on which an action event of my button opens a child stage. The issue is when I close the parent stage, the child stage also closes. I want to prevent parent stage from closing as long as child stage is open.</p>
  
  <p><img src="https://i.stack.imgur.com/WrgaE.png" alt="enter image description here"></p>
  
  <pre><code>URL url = getClass().getResource("Message.fxml");
  FXMLLoader fxmlLoader = new FXMLLoader();
  fxmlLoader.setLocation(url);
  fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
  root = (Parent)fxmlLoader.load(url.openStream());            
  Stage stage = new Stage();
  //stage.initStyle(StageStyle.UNDECORATED);
  //stage.setFullScreen(true);
  stage.setTitle("Welcome User");
  stage.setScene(new Scene(root, 675, 
  stage.show();
  </code></pre>