## 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,32 ****
    --- 23,34 ----
       * 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,100 ****
          }

          protected void updateValue() {
              if (noChangeInValue) return;
              Color value = ((WebColorField) control).getValue();
    !         String text = getTextField().getText() == null ? "" : getTextField().getText().trim().toUpperCase();
              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);
    --- 92,102 ----
          }

          protected void updateValue() {
              if (noChangeInValue) return;
              Color value = ((WebColorField) control).getValue();
    !         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);