Witam
Chcę sobie przedstawić liste obiektów w formie Tabelki (TableView) robiąc to tak:
@FXML
private TableColumn<Answer, Integer> nextSituationIdColumn;
@FXML
private void initialize(){
nextSituationIdColumn.setCellValueFactory(cellData -> cellData.getValue().nextSituationIdProperty()); //i w tym miejscu wywala błąd
}
Błąd treści
Type mismatch: cannot convert from IntegerProperty to ObservableValue<Integer>
Jest to troche dziwne ponieważ jeśli poda mu sie StringProperty to działa normalnie. Jest jakaś łatwa metoda żeby to obejść i móc wyświetlać inty w columnie?