This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.