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

Print this page

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

    @@ -56,10 +56,11 @@
     import java.io.InputStream;
     import java.io.InputStreamReader;
     import java.util.ArrayList;
     import java.util.Collections;
     import java.util.List;
    +import java.util.Locale;
     import com.sun.javafx.css.StyleManager;
     import com.sun.javafx.scene.control.behavior.BehaviorBase;
     import static javafx.scene.input.MouseEvent.MOUSE_PRESSED;
     import static javafx.scene.input.TouchEvent.TOUCH_PRESSED;
     import static javafx.scene.layout.Region.USE_PREF_SIZE;

    @@ -222,11 +223,11 @@
             String oldType = vkType;
             int typeIndex = 0;
             Object typeValue = attachedNode.getProperties().get(FXVK.VK_TYPE_PROP_KEY);
             String typeStr = null;
             if (typeValue instanceof String) {
    -            typeStr = ((String)typeValue).toLowerCase();
    +            typeStr = ((String)typeValue).toLowerCase(Locale.ROOT);
             }
             vkType = (typeStr != null ? typeStr : "text");

             //VK type changed, rebuild
             if ( oldType == null || !vkType.equals(oldType) ) {