javafx 2, CSS and focus disappearing

Posted by AgostinoX on Stack Overflow See other posts from Stack Overflow or by AgostinoX
Published on 2012-11-02T22:58:55Z Indexed on 2012/11/02 22:59 UTC
Read the original article Hit count: 284

Filed under:
|

I've created a very simple CSS that styles two buttons.
To the first has just been added a padding. To the second has been set the -fx-background-color, but the value is taken from caspian.css, that is the value it should have before it had been set.

.first-style { -fx-padding: 20 5 1 5; }

.second-style { -fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color; }

At this point i experience a strange behavior: the focus decoration stops working, and the second button doesn't get its blue border when focused.

enter image description here

What's happening?

© Stack Overflow or respective owner

Related posts about css

Related posts about javafx-2