I have a TableView and some POJOs and want to bind with a property from one of them to the TableView.
However, this property is also a POJO and this should get one prope
You can't use a PropertyValueFactory
to do this: you need to implement the Callback
directly.
Put an fx:id="actualColumn"
on the table column, inject the column into your controller with
@FXML
private TableColumn<Persona, BigDecimal> actualColumn ;
and in your controller's initialize()
method, do:
actualColumn.setCellValueFactory(cellData ->
new ReadOnlyObjectWrapper<BigDecimal>(cellData.getValue().getDeuda().getSaldo()));