Share the post "TableView Does Not Update ObservableList In Java FX 2.2"
If ever this will happen to you, chances are you used a bean class as the object passed to the ObservableList. Hence, any update done will not update your TableView unless it is binded to that bean class.
To do so, replace your data types like long, int, double to use the
Check this sample class:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
public class MyClass { private StringProperty name = new SimpleStringProperty; public String getName() { return name.get(); } public void setName(String name) { this.name.set(name); } public StringProperty nameProperty() { return name; } } |
Your bean class must have a