My application utilizes row selection mode (
table.setCellSelectionEnabled(false)
)
Within my stylesheet:
.table-row-cell:selected {
-fx-background-color: steelblue;
-fx-text-fill: red !important;
}
While the -fx-background-color
property functions properly, the -fx-text-fill
does not. The text color of the selected row remains black (when the TableView
is unfocused) or changes to white (if the TableView
gains focus).