## modules/graphics/src/main/java/com/sun/glass/ui/PlatformFactory.java

Print this page

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

    *** 22,31 ****
    --- 22,33 ----
       * or visit www.oracle.com if you need additional information or have any
       * questions.
       */
      package com.sun.glass.ui;

    + import java.util.Locale;
    +
      import com.sun.glass.ui.accessible.AccessibleBaseProvider;
      import com.sun.glass.ui.accessible.AccessibleRoot;
      import com.sun.glass.ui.delegate.ClipboardDelegate;
      import com.sun.glass.ui.delegate.MenuBarDelegate;
      import com.sun.glass.ui.delegate.MenuDelegate;
    *** 36,46 ****
          private static PlatformFactory instance;
          public static synchronized PlatformFactory getPlatformFactory() {
              if (instance == null) {
                  try {
                      String platform = Platform.determinePlatform();
    !                 String factory = "com.sun.glass.ui." +  platform.toLowerCase() + "."+ platform + "PlatformFactory";
                      // System.out.println("Loading Glass Factory " + factory);
                      Class c = Class.forName(factory);
                      instance = (PlatformFactory) c.newInstance();
                  } catch (Exception e) {
                      e.printStackTrace();
    --- 38,48 ----
          private static PlatformFactory instance;
          public static synchronized PlatformFactory getPlatformFactory() {
              if (instance == null) {
                  try {
                      String platform = Platform.determinePlatform();
    !                 String factory = "com.sun.glass.ui." +  platform.toLowerCase(Locale.ROOT) + "."+ platform + "PlatformFactory";
                      // System.out.println("Loading Glass Factory " + factory);
                      Class c = Class.forName(factory);
                      instance = (PlatformFactory) c.newInstance();
                  } catch (Exception e) {
                      e.printStackTrace();