How to change the highlighting color in JavaFX?

后端 未结 3 1154
春和景丽
春和景丽 2021-02-14 23:09

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:

.ro         


        
3条回答
  •  后悔当初
    2021-02-14 23:39

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

    .text-area {
        -fx-highlight-fill: green;
    }
    

提交回复
热议问题