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