How to highlight column instead of row in javafx TableView on hover?

How to highlight a column instead of a row in javafx TableView when hovering or clicking on it?

+6
source share
1 answer

I highly recommend you use ScenicView . You can check the scene graph and view all css attributes for each element in it. This will allow you to easily determine the correct css hierarchy to use the style only for the column, not the row.

You can then apply the appropriate styles using css for the freeze or click states using the following css event selectors:

:hover :armed :pressed :disabled etc... 
0
source

All Articles