I have a
JavaFX TreeViewwhich hasTreeItemswith two basic colors , red and white . When they are selected they both have-fx-underline:truebut i have a problem with the line beingRed or Whitei want theunderlineto be alwayswhite, is that possible with css in JavaFX ?
I have tried the below but it doesn't work .
.tree-cell-white:selected {
-fx-font-weight: bold ;
-fx-text-fill:white;
-fx-underline: true;
-fx-underline-fill: orange;
-fx-underline-color: blue;
}
.tree-cell-red:selected {
-fx-font-weight: bold ;
-fx-text-fill:firebrick;
-fx-underline: true;
}

