com.sun.stylesheet.StylesheetException

unable to convert string 'WHITE' to a color

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Oracle Community by 843851, 1 year ago
    unable to convert string 'WHITE' to a color
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.