Java tutorial
//package com.java2s; import java.awt.Component; public class Main { public static boolean isLeftToRight(Component c) { return c.getComponentOrientation().isLeftToRight(); } }