GeeCON Prague 2014*
The moose likes JavaFX and the fly likes How to control unfocused state in javafx css? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JavaFX
Bookmark "How to control unfocused state in javafx css?" Watch "How to control unfocused state in javafx css?" New topic
Author

How to control unfocused state in javafx css?

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505
    
    1

Hello!

I have TreeCell which has css selector connectionTreeCell. If I want to set particular color when TreeCell is selected I use:
connectionTreeCell:selected

But I want to set particular color when TreeCell lost focus.

By default when TreeCell loses focus its text color changes to white.

How to override this behaviour?

Thanks!


True person is moral, false is right!
 
GeeCON Prague 2014
 
subject: How to control unfocused state in javafx css?