Setting style "-fx-image-borders:url(\""+ getClass().getResource("image.png").toExternalForm() +"\") 15 repeat-x 5 5;" throws ClassCastException :
WARNING: com.sun.javafx.css.StyleHelper transitionToState Failed to set css [StyleableProperty {property: -fx-image-borders, converter: com.sun.javafx.scene.layout.region.BorderImageConverter@649b5c7c, initalValue: null, inherits: false, subProperties: [StyleableProperty {property: -fx-border-image-source, converter: URLSeqType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-repeat, converter: BorderImageRepeatConverter, initalValue: [Lcom.sun.javafx.scene.layout.region.BorderImage$BorderImageRepeat;@13d5047e, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-slice, converter: BorderImageSliceSequenceConverter, initalValue: [Lcom.sun.javafx.scene.layout.region.BorderImage$BorderImageSlice;@619f65e, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-width, converter: MarginsSequenceConverter, initalValue: [Lcom.sun.javafx.scene.layout.region.Margins;@127d9873, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-insets, converter: InsetsSequenceConverter, initalValue: [Ljavafx.geometry.Insets;@73a3af80, inherits: false, subProperties: []}]}]
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
at javafx.scene.layout.Region$19.set(Region.java:1236)
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-image-borders, converter: com.sun.javafx.scene.layout.region.BorderImageConverter@649b5c7c, initalValue: null, inherits: false, subProperties: [StyleableProperty {property: -fx-border-image-source, converter: URLSeqType, initalValue: null, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-repeat, converter: BorderImageRepeatConverter, initalValue: [Lcom.sun.javafx.scene.layout.region.BorderImage$BorderImageRepeat;@13d5047e, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-slice, converter: BorderImageSliceSequenceConverter, initalValue: [Lcom.sun.javafx.scene.layout.region.BorderImage$BorderImageSlice;@619f65e, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-width, converter: MarginsSequenceConverter, initalValue: [Lcom.sun.javafx.scene.layout.region.Margins;@127d9873, inherits: false, subProperties: []}, StyleableProperty {property: -fx-border-image-insets, converter: InsetsSequenceConverter, initalValue: [Ljavafx.geometry.Insets;@73a3af80, inherits: false, subProperties: []}]}]
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
at javafx.scene.layout.Region$19.set(Region.java:1236)
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-8117023 CSS setting style -fx-stroke-borders throws ClassCastException
-
- Closed
-
-
JDK-8120208 CSS setting style -fx-background-fills throws ClassCastException
-
- Resolved
-
-
JDK-8116968 CSS setting style -fx-background-images throws ClassCastException
-
- Closed
-