Advertisement
Coriic

Untitled

Dec 6th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Stage stage=(Stage) backToMenu.getScene().getWindow();
  2. Parent root = null;
  3. try {
  4. root = FXMLLoader.load(getClass().getClassLoader().getResource("mainWindow.fxml"));
  5. } catch (IOException e) {
  6. e.printStackTrace();
  7. }
  8. Scene scene = new Scene(root);
  9. stage.setScene(scene);
  10. stage.show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement