Example usage for java.awt Container applyComponentOrientation

List of usage examples for java.awt Container applyComponentOrientation

Introduction

In this page you can find the example usage for java.awt Container applyComponentOrientation.

Prototype

public void applyComponentOrientation(ComponentOrientation o) 

Source Link

Document

Sets the ComponentOrientation property of this container and all components contained within it.

Usage

From source file:org.notebook.gui.widget.GuiUtils.java

/**
 * Applies Locale specific component orientation to containers.
 * /*from w w w  .  j  a va2  s. c o  m*/
 * @param containers
 *            One or more containers
 */
public static void applyComponentOrientation(Container... containers) {
    if (componentOrientation == null) {
        setComponentOrientation();
    }
    for (Container container : containers) {
        container.applyComponentOrientation(componentOrientation);
    }
}