Setting style "-fx-stroke-borders:red 15 10 dashed 5;" throws ClassCastException :
WARNING: com.sun.javafx.css.StyleHelper transitionToState Failed to set css [StyleableProperty {property: -fx-stroke-borders, converter: StrokeBorderType, initalValue: null, inherits: false, subProperties: [StyleableProperty {property: -fx-border-color, converter: LayeredBorderPaintType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-insets, converter: InsetsSequenceConverter, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-radius, converter: MarginsSequenceConverter, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-style, converter: LayeredBorderStyleType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-width, converter: MarginsSequenceConverter, initalValue: null, inherits: false, subProperties: []}]}]
java.lang.ClassCastException: javafx.scene.paint.Color cannot be cast to java.util.List
at javafx.scene.layout.Region$18.set(Region.java:1180)
at com.sun.javafx.css.StyleableObjectProperty.applyStyle(StyleableObjectProperty.java:58)
at com.sun.javafx.css.StyleableProperty.set(StyleableProperty.java:70)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:902)
at javafx.scene.Node.impl_processCSS(Node.java:7415)
at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
at javafx.scene.Node.processCSS(Node.java:7383)
at javafx.scene.Node.processCSS(Node.java:7377)
at javafx.scene.Node.processCSS(Node.java:7377)
at javafx.scene.Scene.doCSSPass(Scene.java:443)
at javafx.scene.Scene.access$3800(Scene.java:169)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2198)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
WARNING: com.sun.javafx.css.StyleHelper transitionToState Failed to set css [StyleableProperty {property: -fx-stroke-borders, converter: StrokeBorderType, initalValue: null, inherits: false, subProperties: [StyleableProperty {property: -fx-border-color, converter: LayeredBorderPaintType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-insets, converter: InsetsSequenceConverter, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-radius, converter: MarginsSequenceConverter, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-style, converter: LayeredBorderStyleType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-width, converter: MarginsSequenceConverter, initalValue: null, inherits: false, subProperties: []}]}]
java.lang.ClassCastException: javafx.scene.paint.Color cannot be cast to java.util.List
at javafx.scene.layout.Region$18.set(Region.java:1180)
at com.sun.javafx.css.StyleableObjectProperty.applyStyle(StyleableObjectProperty.java:58)
at com.sun.javafx.css.StyleableProperty.set(StyleableProperty.java:70)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:902)
at javafx.scene.Node.impl_processCSS(Node.java:7415)
at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
at javafx.scene.Node.processCSS(Node.java:7383)
at javafx.scene.Node.processCSS(Node.java:7377)
at javafx.scene.Node.processCSS(Node.java:7377)
at javafx.scene.Scene.doCSSPass(Scene.java:443)
at javafx.scene.Scene.access$3800(Scene.java:169)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2198)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
at java.lang.Thread.run(Thread.java:722)
- relates to
-
JDK-8120208 CSS setting style -fx-background-fills throws ClassCastException
-
- Resolved
-
-
JDK-8116968 CSS setting style -fx-background-images throws ClassCastException
-
- Closed
-
-
JDK-8125211 CSS setting style -fx-image-borders throws ClassCastException
-
- Closed
-