javafx 2, CSS and focus disappearing
- by AgostinoX
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.
What's happening?