How can I use right-to-left text in a JTextPane?

Sandip Chitale

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.

[FAQ Manager Note]This will apply the orientation to a single component. If you want to apply it to all components under a Window, use

java.awt.Window.applyResourceBundle()

]

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact