Hi everyone,
I'm making a application in which I need to share a lot of properties between Controllers, so I am using a observable class now which I got from the internet. In the example I'm viewing the person in question is using a initialize method in the Main class of the program. It looks like this:
@FXML
public void initialize() {
    this.parametersController.initialize(this.simulator);
    this.controlsController.initialize(this.simulator);
    this.cashRegisterController.initialize(this.simulator);
    this.cashRegisterController.initialize(this.simulator);
}
I did exactly the same in my program, but my initialize method is not being called by Java. If I open his example project in IntelliJ it shows his method is indeed being used. Example:
In my own code however, IntelliJ is showing me that the method is not being used. Example:
If I place a breakpoint in the initialize method, I can indeed confirm it is never being called.
Why is this? What am I doing wrong? I can't figure it out.
Thanks in advance to everyone!


 
    