I am using Scene Builder to create a JavaFX GUI application. I am trying to implement something like this, using FXML:
reportButton = new Button("Report");
reportButton.setOnAction(e -> ReportPage.display());
but I can't figure it out how to do that using the controller page. Can someone please tell me how do I do that? Thank you