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

ColorPicker Runtime Exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4
    • 7-pool
    • 7u75
    • javafx
    • Windows 7, x64, Turkish locale, Java 1.7u75 with external javafx jar (at jdk_dir/jre/lib/jfxrt.jar)

    Description

      When I try to create scene including ColorPicker, it gives runtime error. I detected this is because locale. I am using Turkish locale and if I add "Locale.setDefault(Locale.ROOT);" command before creating scene, it is resolved.

      Same issue (including other classes) is fixed in openjdk here: http://hg.openjdk.java.net/openjfx/8/master/rt/rev/16d1fc60bd6a

      Here is my exception:

      -----------------------------------------------------------------------------------------------------------------------
      Exception in runnable
      java.lang.IllegalArgumentException: Invalid color specification
      at javafx.scene.paint.Color.web(Color.java:455)
      at javafx.scene.paint.Color.web(Color.java:636)
      at com.sun.javafx.scene.control.skin.ColorPickerSkin.colorValueToWeb(ColorPickerSkin.java:139)
      at com.sun.javafx.scene.control.skin.ColorPickerSkin.updateColor(ColorPickerSkin.java:244)
      at com.sun.javafx.scene.control.skin.ColorPickerSkin.getDisplayNode(ColorPickerSkin.java:217)
      at com.sun.javafx.scene.control.skin.ComboBoxBaseSkin.updateDisplayArea(ComboBoxBaseSkin.java:125)
      at com.sun.javafx.scene.control.skin.ComboBoxBaseSkin.computePrefHeight(ComboBoxBaseSkin.java:180)
      at javafx.scene.Parent.prefHeight(Parent.java:879)
      at javafx.scene.layout.Region.prefHeight(Region.java:1384)
      at javafx.scene.control.Control.computePrefHeight(Control.java:856)
      at javafx.scene.Parent.prefHeight(Parent.java:879)
      at javafx.scene.control.Control.prefHeight(Control.java:738)
      at com.sun.javafx.scene.control.skin.ComboBoxBaseSkin.computeMaxHeight(ComboBoxBaseSkin.java:210)
      at javafx.scene.layout.Region.maxHeight(Region.java:1417)
      at javafx.scene.control.Control.computeMaxHeight(Control.java:848)
      at javafx.scene.control.Control.maxHeight(Control.java:771)
      at javafx.scene.layout.Region.computeChildMaxAreaHeight(Region.java:1628)
      at javafx.scene.layout.GridPane.computeRowMetrics(GridPane.java:1234)
      at javafx.scene.layout.GridPane.computeGridMetrics(GridPane.java:1119)
      at javafx.scene.layout.GridPane.computePrefWidth(GridPane.java:1012)
      at javafx.scene.Parent.prefWidth(Parent.java:867)
      at javafx.scene.layout.Region.prefWidth(Region.java:1368)
      at javafx.scene.layout.Region.computeChildPrefAreaWidth(Region.java:1582)
      at javafx.scene.layout.Region.computeChildPrefAreaWidth(Region.java:1569)
      at javafx.scene.layout.BorderPane.computePrefWidth(BorderPane.java:429)
      at javafx.scene.Parent.prefWidth(Parent.java:867)
      at javafx.scene.layout.Region.prefWidth(Region.java:1368)
      at javafx.scene.Scene.preferredSize(Scene.java:1477)
      at javafx.scene.Scene.impl_preferredSize(Scene.java:1535)
      at javafx.stage.Window$9.invalidated(Window.java:717)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:127)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:161)
      at javafx.stage.Window.setShowing(Window.java:781)
      at javafx.stage.Window.show(Window.java:796)
      at com.sun.javafx.stage.EmbeddedWindow.show(EmbeddedWindow.java:57)
      at javafx.embed.swing.JFXPanel.setSceneImpl(JFXPanel.java:278)
      at javafx.embed.swing.JFXPanel.setScene(JFXPanel.java:245)

      Attachments

        Issue Links

          Activity

            People

              leifs Leif Samuelsson (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: