I would like to update my TableView rows color depending on the data in the cell. In the oracle documentation, there is an example with the ListView, I would like to do the same thing with a Tableview, I think I have to customize my cellfactory but I do not understand how it works. Here is the link : http://docs.oracle.com/javafx/2/api/javafx/scene/control/Cell.html
My TableView is defined in my FXML file and in my controller I have the following code:
@FXML public TableView<TableData> tableView;
public void initialize(URL arg0, ResourceBundle arg1) {
//Depending on data change row color ?
tableView.setItems(data);
}