I have 6 fxml files having one controller . I need initialize method not on first fxml but on 5th fxml file(PasswordArray.fxml) for customization of buttons. Since initialize() method is called automatically on load of first fxml file(Home.fxml) , it shows an error. How to use now initialize method after PasswordArray.fxml . I searched on internet but do not found any solution of my question. Should I use diffferent controllers , because I need initialize method for more than one fxml file.Main FXML File (Home.fxml)
Controller (MajorProjectController.java) [initialize() method][3]