Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stage stage=(Stage) backToMenu.getScene().getWindow();
- Parent root = null;
- try {
- root = FXMLLoader.load(getClass().getClassLoader().getResource("mainWindow.fxml"));
- } catch (IOException e) {
- e.printStackTrace();
- }
- Scene scene = new Scene(root);
- stage.setScene(scene);
- stage.show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement