displaying asian languages

Hi all,

I am trying to display an Indian language in a text field and the following code should do that,

String davidMessage = "David says, \"\u0041\u0C81\u0C83\";

JTextArea textArea = new JTextArea(davidMessage);

But its not working the way I expected....should my computer have that font file(ttf or something of that kind)...Doesn't JVM support these unicode characters on its own....

Can someone help me with this...

Thanks in advance,

Pradeep

[497 byte] By [pradeep@echa] at [2007-11-27 4:45:28]
# 1
Go to : control panel > regional options > then change standard and location to India.
java_2006a at 2007-7-12 9:57:50 > top of Java-index,Desktop,Core GUI APIs...
# 2
that doesn't work...and i think this doesn't serves the purpose as well....Any other suggestion would be appreciated...Thanks again
pradeep@echa at 2007-7-12 9:57:50 > top of Java-index,Desktop,Core GUI APIs...
# 3

http://www.joconner.com/wp-content/uploads/2007/04/locale.html

In general, peered AWT components support scripts that are supported by the underlying host. If your host system is localized to Arabic, the AWT text components will display Arabic. On an Arabic system, you would also be able to enter Arabic text into components like TextField or TextArea. However, you cannot expect those same AWT components to display text that isn't in the same script as the localized host. An English host would not typically be able to display Arabic in a TextField for example.

java_2006a at 2007-7-12 9:57:50 > top of Java-index,Desktop,Core GUI APIs...
# 4

hi!

see you are right in one way.. that is all fonts does not support those special Unicode values. for example Arial Unicode MS supports most unicode values. so if you set your textarea font to that font style then it should work. as well as you need that file on your machine. in this case ARIALUNI.TTF in OS-font folder.

regards

Aniruddha

Aniruddha-Herea at 2007-7-12 9:57:50 > top of Java-index,Desktop,Core GUI APIs...
# 5
these things make little sense...i think it needs a lot of reading
pradeep@echa at 2007-7-12 9:57:51 > top of Java-index,Desktop,Core GUI APIs...