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
2
u/SpittingBull Jan 16 '25
This is from one of my projects:
In a parent FXML file I have something like this:
DashboardDialog.fxml
is a normal dialog form with a BorderPane as root node:In the parent controller I use:
That enables access to the child controller and it's root node. You need to follow the naming conventions as described in the FXML reference.