Sets the language-sensitive orientation that is to be used to order the elements or text within this component. Language-sensitive
LayoutManager
and
Component
subclasses will use this property to determine how to lay out and draw components.
At construction time, a component's orientation is set to ComponentOrientation.UNKNOWN
, indicating that it has not been specified explicitly. The UNKNOWN orientation behaves the same as ComponentOrientation.LEFT_TO_RIGHT
.
To set the orientation of a single component, use this method. To set the orientation of an entire component hierarchy, use applyComponentOrientation
.
This method changes layout-related information, and therefore, invalidates the component hierarchy.