Difference between initialized controllers and FXML linked controllers?
问题 Until recently I didn't know you could set controllers with fx:controller in the FXML file so I have relied on FXMLLoader's setController to manage linking. So, is there any reason to use one over another like a particular case where the overrideable initialize() method would be useful? 回答1: There is no functional difference between the two methods of setting a controller for an fxml file. However, in terms of when to use which there is a slight distinction. If your controller doesn't need