Get Component Orientation for Locale : ComponentOrientation « I18N « Java






Get Component Orientation for Locale

Get Component Orientation for Locale
 

import java.awt.ComponentOrientation;
import java.util.Locale;

public class ListLocaleOrientation {

  public static void main(String[] argv) throws Exception {
    Locale myLocale = Locale.getDefault();
    ComponentOrientation ce = ComponentOrientation.getOrientation(myLocale);
    System.out.println("Is horizontal? " + ce.isHorizontal());
    System.out.println("Is left to right? " + ce.isLeftToRight());
  }
}

 








Related examples in the same category

1.Internationalized Graphical User Interfaces: Component OrientationInternationalized Graphical User Interfaces: Component Orientation
2.Internationalized Graphical User Interfaces: Component Orientation 1Internationalized Graphical User Interfaces: Component Orientation 1
3.Component Orientation Bundle