I've got a rather basic JavaFx 2.x pet project which has a main window with stage and a dialog with a new Stage but using the main window as owner.
When the dialog is shown there's a button that imports something to the file system. When this occurs I need to update the controllers and views of the main window and that's where I'm puzzled.
Upon initializing the main window all @FXML injected nodes are available. However when the button in the dialog is clicked, a custom event gets fired which is successfully picked up by the controller of the main window. However when I try to access the @FXML injected nodes they're all null. The controller also has a different memory signature so it's basically a different object.
Dialog caller controller with event handler:
Dialog controller firing the event
I'm rather new in JavaFx and I've never used it professionally.