r/JavaFX • u/Draaksward_89 • Jan 16 '25
Help Grouping @JXML into an entity
Is it possible to combine several
```
\@FXML private TextField myField
```
into a separate class, which then would be used in a `\@FxmlView`?
1
Upvotes
View all comments
Show parent comment
1
u/SpittingBull Jan 16 '25
NP - again: be aware that
initialize()in theDashboardDialogcontroller is invoked before the parent controller. Or generally speaking: within theinitialize()method of a child controller you can not reliably access controls of the parent or other child controllers.If that is an issue you need some form of a synchronization like a separate initialization method in the child controller that is explicitly invoked from within the parent controllers
initialize()method.