Good day. I read that the Controller constructor is called before the initialize (...) method. But I do not know how to pass parameters to the constructor. The only way I know is this:
FXMLLoader loader = new FXMLLoader(...); TestController testController = new TestController(some paremetrs); loader.setController(controller); loader.load(); But I don’t like it for certain reasons, maybe there is a way to make it somehow more correct and beautiful?