This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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 Lysenko
Ranch Hand

Joined: Mar 29, 2012
Posts: 511
    
    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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to control unfocused state in javafx css?
 
It's not a secret anymore!