Accessing FXML controller class
You can get the controller from the FXMLLoader FXMLLoader fxmlLoader = new FXMLLoader(); Pane p = fxmlLoader.load(getClass().getResource(“foo.fxml”).openStream()); FooController fooController = (FooController) fxmlLoader.getController(); store it in your main stage and provide getFooController() getter method. From other classes or stages, every time when you need to refresh the loaded “foo.fxml” page, ask it from its controller: getFooController().updatePage(strData); … Read more