JavaFX 2.1 TableView refresh items
Workaround:
tableView.getColumns().get(0).setVisible(false);
tableView.getColumns().get(0).setVisible(true);
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.