How can I use right-to-left text in a JTextPane?
Starting JDK1.2 the java.awt.Component class has the following method
public ComponentOrientation getComponentOrientation()
Retrieve the language-sensitive orientation that is to be used to order the elements or text within this component. LayoutManager and Component subclasses that wish to respect orientation should call this method to get the component's orientation before performing layout or drawing.