Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8088385

On using add,green,blue,red values for blend mode through css, getting invalid class cast exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u25
    • javafx
    • any

      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]

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: