JavaFX : Pass parameters while instantiating controller class
The two easiest ways of doing it for small applications are : Do not specify the fx:controller in the fxml. Create a controller instance by passing data to it and then pass it to the FXMLLoader. Specify the fx:controller in the fxml. Fetch the controller instance from the FXMLLoader and pass the data to the … Read more