src/java.desktop/share/classes/java/awt/ComponentOrientation.java

Print this page

        

*** 152,162 **** * @return the orientation for the locale */ public static ComponentOrientation getOrientation(Locale locale) { // A more flexible implementation would consult a ResourceBundle // to find the appropriate orientation. Until pluggable locales ! // are introduced however, the flexiblity isn't really needed. // So we choose efficiency instead. String lang = locale.getLanguage(); if( "iw".equals(lang) || "ar".equals(lang) || "fa".equals(lang) || "ur".equals(lang) ) { --- 152,162 ---- * @return the orientation for the locale */ public static ComponentOrientation getOrientation(Locale locale) { // A more flexible implementation would consult a ResourceBundle // to find the appropriate orientation. Until pluggable locales ! // are introduced however, the flexibility isn't really needed. // So we choose efficiency instead. String lang = locale.getLanguage(); if( "iw".equals(lang) || "ar".equals(lang) || "fa".equals(lang) || "ur".equals(lang) ) {