## modules/graphics/src/main/java/javafx/scene/Cursor.java

Print this page

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

    *** 25,34 ****
    --- 25,35 ----

      package javafx.scene;

      import java.net.MalformedURLException;
      import java.net.URL;
    + import java.util.Locale;
      import javafx.scene.image.Image;
      import com.sun.javafx.cursor.CursorFrame;
      import com.sun.javafx.cursor.CursorType;
      import com.sun.javafx.cursor.StandardCursorFrame;

    *** 217,227 ****

              if (isUrl(identifier)) {
                  return new ImageCursor(new Image(identifier));
              }

    !         String uName = identifier.toUpperCase();
              if (uName.equals(DEFAULT.name)) {
                  return DEFAULT;
              } else if(uName.equals(CROSSHAIR.name)) {
                  return CROSSHAIR;
              } else if (uName.equals(TEXT.name)) {
    --- 218,228 ----

              if (isUrl(identifier)) {
                  return new ImageCursor(new Image(identifier));
              }

    !         String uName = identifier.toUpperCase(Locale.ROOT);
              if (uName.equals(DEFAULT.name)) {
                  return DEFAULT;
              } else if(uName.equals(CROSSHAIR.name)) {
                  return CROSSHAIR;
              } else if (uName.equals(TEXT.name)) {