FileDocCategorySizeDatePackage
ListLocaleOrientation.javaAPI DocExample1000Wed Jan 17 20:09:44 GMT 2001None

ListLocaleOrientation.java

/*import java.awt.*;
import java.util.*;

public class ListLocaleOrientation {

  public static void main(String [] argv) throws Exception {

    Locale myLocale;
    if (argv.length < 2)
      myLocale = Locale.getDefault();
    else
      myLocale = new Locale(argv[0], argv[1]);
    ComponentOrientation ce = ComponentOrientation.getOrientation(myLocale);
    System.out.println("Is horizontal? " + ce.isHorizontal());
    System.out.println("Is left to right? " + ce.isLeftToRight());
  }
}
*/

import java.awt.*;
import java.util.*;

public class ListLocaleOrientation {

  public static void main(String [] argv) throws Exception {

    Locale myLocale;
    if (argv.length < 2)
      myLocale = Locale.getDefault();
    else
      myLocale = new Locale(argv[0], argv[1]);
    ComponentOrientation ce =
        ComponentOrientation.getOrientation(myLocale);
    System.out.println("Is horizontal? " + ce.isHorizontal());
    System.out.println("Is left to right? " + ce.isLeftToRight());
  }
}