Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1.    private void goToCharts() {
  2.         Stage stage = (Stage) buttonCharts.getScene().getWindow();
  3.         try {
  4.             Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("chartView.fxml"));
  5.             stage.setScene(new Scene(root, 600,400));
  6.         } catch (IOException e) {
  7.             e.printStackTrace();
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement