dcsimg

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));