Why StringPropertyvalue is displayed in my tableView JavaFX

Опубликовано: 11 Август 2016
на канале: Towfik Alrazihi
499
2

Why StringProperty[value...] is displayed in my tableView JavaFX

If the field is ObservableValue like:

private SimpleStringProperty val = new SimpleStringProperty();
There should be accessors as:

public String getVal() {
val.get();
}

public void setVal(String newVal) {
val.set(newVal);
}

public StringProperty valProperty() {
return val;
}