Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the highlighting color in JavaFX?

How to change the highlighting color in JavaFX? Usually it is blue with gradients, but I would like to have a green highlighting. I have tried the following:

.root{
    -fx-shadow-highlight-color: #CCFF99;
}

Thanks for help!

like image 538
stetro Avatar asked Jan 02 '13 17:01

stetro


1 Answers

Also you can use -fx-highlight-fill on text-area class selector.

.text-area {
    -fx-highlight-fill: green;
}
like image 159
ivanjermakov Avatar answered Oct 07 '22 22:10

ivanjermakov