How can I write from right to left (e.g. hebrew) in a TextField/TextArea?

Kaloian Doganov

Use ComponentOrientation property of almost all Swing components. Here is an example with JTextArea and Hebrew:


Locale hebrew = new Locale("he", "IL");
JTextArea area = new JTextArea();
area.setComponentOrientation(ComponentOrientation.getOrientation(hebrew));
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


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

 

 

About | Sitemap | Contact