## modules/controls/src/main/java/com/sun/javafx/scene/control/skin/WebColorFieldSkin.java

Print this page

    rev 4839 : RT-2529: Locale specific runtime errors (Turkish)

    @@ -23,10 +23,12 @@
      * questions.
      */

     package com.sun.javafx.scene.control.skin;

    +import java.util.Locale;
    +
     import javafx.beans.InvalidationListener;
     import javafx.beans.Observable;
     import javafx.scene.Node;
     import javafx.scene.paint.Color;

    @@ -90,11 +92,11 @@
         }

         protected void updateValue() {
             if (noChangeInValue) return;
             Color value = ((WebColorField) control).getValue();
    -        String text = getTextField().getText() == null ? "" : getTextField().getText().trim().toUpperCase();
    +        String text = getTextField().getText() == null ? "" : getTextField().getText().trim().toUpperCase(Locale.ROOT);
             if (text.matches("#[A-F0-9]{6}") || text.matches("[A-F0-9]{6}")) {
                 try {
                     Color newValue = (text.charAt(0) == '#')? Color.web(text) : Color.web("#"+text);
                     if (!newValue.equals(value)) {
                         ((WebColorField) control).setValue(newValue);