Is there a way to modify line selection color for a specific table?
Now I have a standard line selection style defined in the Style Sheet and applies to all tables in all applications.
.table-row-cell: selected {-fx-background-color: # 777777; }
However, I need one of the tables to display a different highlight color on line selection. I was trying down but obviously it is not working is.
In my style sheet:
#lightHighlightTable .table-view .table-row-cell: selected {-fx-background-color: #CCCCCC; }
In my code:
recordsTable.setId ("lightHighlightTable");
Is there something that I am doing wrong in the above?
I am using JDK 1.8b20.
Thank you.
.table-row-cell
style class to TableRow
, because tableview
:
#light highlights .table-row-cell: selected {-fx-background-color: #CCCCCC; }
Comments
Post a Comment