Get your CodeRanch badge!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 481
    
    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
Setting focus to a table row
Connecting two different tree nodes