After applying following css to a javafx.scene.text.Text node,
-fx-blend-mode:green;-fx-font-size:52;-fx-font-style:normal;-fx-font-weight:normal
I'm getting class cast exception for value green
Dec 05, 2014 12:54:23 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Caught 'java.lang.ClassCastException: javafx.scene.paint.Color cannot be
cast to java.lang.String' while converting value for '-fx-blend-mode' from
inline style on Text[text="Title At Company", x=0.0, y=0.0, alignment=LEFT,
origin=BASELINE, boundsType=LOGICAL, font=Font[name=System Regular, family=System,
style=Regular, size=13.0], fontSmoothingType=GRAY, fill=0x000000ff]
-fx-blend-mode:green;-fx-font-size:52;-fx-font-style:normal;-fx-font-weight:normal
I'm getting class cast exception for value green
Dec 05, 2014 12:54:23 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Caught 'java.lang.ClassCastException: javafx.scene.paint.Color cannot be
cast to java.lang.String' while converting value for '-fx-blend-mode' from
inline style on Text[text="Title At Company", x=0.0, y=0.0, alignment=LEFT,
origin=BASELINE, boundsType=LOGICAL, font=Font[name=System Regular, family=System,
style=Regular, size=13.0], fontSmoothingType=GRAY, fill=0x000000ff]
- duplicates
-
JDK-8274699 Certain blend modes cannot be set from CSS
- Resolved