Java tutorial
//package com.java2s; /* * %W% %E% * * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.awt.Component; public class Main { static boolean isLeftToRight(Component c) { return c.getComponentOrientation().isLeftToRight(); } }