How to pass parameters to a controller's constructor when using `<fx:include>`?
问题 I am learning JavaFX, and I have come across an issue involving the instantiation of controllers that I can not seem to solve. Essentially, I am wondering if it is possible to do one of the following: Pass a parameter to the constructor of the controller when including FXML with <fx:include> ; or Specify a custom controller instance to use when including an FXML file with <fx:include> . Note that these issues are related. In fact, the reason I am asking about option (2) is because it would