I try using .css to customize the appearance of the TableView table, namely, that the selected row is blue and the selected cell is blue (the colors have no meaning).
I use css:
.table-row-cell:selected { -fx-background-color: blue; } .table-cell:selected{ -fx-background-color: green; }
When setting a property for a table
getSelectionModel().setCellSelectionEnabled(true); //красит только ячейку getSelectionModel().setCellSelectionEnabled(false); //красит всю строку.