This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to control unfocused state in javafx css?
 
Similar Threads
icefaces menubar css
how to move scrollbars dynamically in a scrollpane?
JTable
Connecting two different tree nodes
Setting focus to a table row