My main UI is defined in an FXML file and is supposed to contain a list of persons. A person would have a picture and some different lines of read-only text to display (name, age, etc...) The list itself will change all the time throughout runtime. (CRUD)
I know it would be possible to create a person-class and just add instances of it to a VBox/Hbox/... at runtime but I would like to create the definition of what the person should look like in an FXML file - if possible.
Is there a way to do this AND also fill these 'object-templates' with data (picture and texts) like with a normal template via the @FXML annotation?