When you’re working around showing the data in your tableview, you may want to show a specific property of some object which is in another object.
Unfortunately, there’s no built-in support for binding paths - you have to implement a custom valueFactory while showing a nested object in a column.
In which case, you need to override the call method which is able to access your object.
TableColumn.setCellValueFactory(new Callback<CellDataFeatures<Object, String>, ObservableValue<String>>() {
@Override
public ObservableValue<String> call(CellDataFeatures<Object, String> c) {
return new SimpleStringProperty(c.getValue().getYourString());
}
});