com.sun.stylesheet.StylesheetException: unable to convert string 'WHITE' to a color

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843851, 1 year ago
unable to convert string 'WHITE' to a color
com.sun.stylesheet.StylesheetException: unable to convert string 'WHITE' to a color
at com.sun.stylesheet.types.AbstractColorConverter.convertFromString(AbstractColorConverter.java:123)
at com.sun.stylesheet.javafx.ColorConverter.convertFromString(ColorConverter.java:44)
at com.sun.stylesheet.types.TypeManager.convertFromString(TypeManager.java:486)
at com.sun.stylesheet.javafx.PaintConverter.convertFromString$impl(PaintConverter.fx:43)
at com.sun.stylesheet.javafx.PaintConverter.convertFromString(PaintConverter.fx:31)
at com.sun.stylesheet.types.TypeManager.convertFromString(TypeManager.java:486)
at com.sun.stylesheet.styleable.DefaultStyleable.convertPropertyFromString(DefaultStyleable.java:152)
at com.sun.stylesheet.Declaration.convertValue(Declaration.java:76)
at com.sun.stylesheet.Declaration.applyTo(Declaration.java:91)
at com.sun.stylesheet.Rule.applyTo(Rule.java:221)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:277)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:282)
at com.sun.stylesheet.Stylesheet.applyTo(Stylesheet.java:257)
at javafx.scene.Scene.applyStylesheets$impl(Scene.fx:235)
at javafx.scene.Scene.applyStylesheets(Scene.fx:43)
at javafx.scene.Scene.userInit$(Scene.fx:220)
at javafx.scene.Scene.initialize$(Scene.fx:43)
at simplevideoplayer.Main.javafx$run$(Main.fx:82)
at simplevideoplayer.Main.javafx$run$(Main.fx:82)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.