1

I know that in swing you could open a child window/dialog/frame with a parent, and that the children windows would have kind of the same properties as the parent, such as sharing the emblem in the top left. Is there any kind of feature like that in JavaFX 8? This creates a new window, but doesn't have any parent that shares information(is even able to close parent and child doesn't close):

@FXML
private void onNewClanCreation(ActionEvent event) throws IOException {
    Parent root = FXMLLoader.load(getClass().getResource("ClanCreationPanel.fxml"));
    Stage stage = new Stage();
    stage.setScene(new Scene(root));
    stage.setResizable(false);
    stage.setTitle("New Clan Creation");
    stage.show();
    }

NOTE: I've read both JavaFX 2.0 FXML Child Windows and JavaFX open new window.

Community
  • 1
  • 1
Sarah Szabo
  • 10,345
  • 9
  • 37
  • 60

1 Answers1

1

Before you show your Stage initialize it's owner:

jewelsea
  • 150,031
  • 14
  • 366
  • 406