JavaFX 2.1 TableView refresh items

Since JavaFX 8u60 you can use(assuming tableView is an instance of TableView class):

tableView.refresh();

From the documentation:

Calling refresh() forces the TableView control to recreate and
repopulate the cells necessary to populate the visual bounds of the
control. In other words, this forces the TableView to update what it
is showing to the user. This is useful in cases where the underlying
data source has changed in a way that is not observed by the TableView
itself.

Leave a Comment