I know that it is possible to create a column in TableView filled with buttons thanks to jewelsea.
But I want to know if it's possible to define it directly in the FXML.
As an example, with other types one do:
Class Person:
private final SimpleStringProperty birthDate = new SimpleStringProperty("");
Then in the FXML:
<TableView fx:id="table" layoutY="50.0" prefHeight="350.0" prefWidth="600.0">
<columns>
<TableColumn prefWidth="79.5" text="date of birth">
<cellValueFactory>
<PropertyValueFactory property="birthDate" />
</cellValueFactory>
</TableColumn>
</columns>
</TableView>
And one can add this element with:
@FXML private TableView<Person> table;
//...
table.getItems().add("12/02/1452");
How to achieve the same with Buttons?