I have a tableview and want to change the default colors of the rows if I...
1. ... hover above a row.
2. ... selected a row.
Is there a easy way to do all of it in the css-file?
All I found out is that for case 1, I can set
.table-cell:hover {
-fx-background-color: green; }
in the css-file. With that the color of the cell changes but not the color of the whole row.
.table-view .row-selection:hover{
-fx-background-color: lightgreen; }
and a lot of other combinations I tried are not working.