TextField -fx-strikethrough add/remove problem
Hi,
For some reason I must make text in a TextField control striken and dinamicaly return back to normal style.
I use custom style class, which is applied like this:
.invalid-optional-lov .text{
-fx-strikethrough : true;
}
private static final String style = "invalid-optional-lov";
textField.getStyleClass().add(style);
After some events I want to remove the style, to return back to normal style like this:
textField.getStyleClass().remove(style);
But there is NO efect!
Where I'm wrong? Or it is a bug?
Thank you.