File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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!
 
jQuery in Action, 2nd edition
 
subject: How to control unfocused state in javafx css?