>I'm developing an application that accepts Arabic string as input in text
>field. The Arabic language is written from right to left so Im trying to use
>FontRenderContext class to Font.layoutGlyphVector to make the writing
>direction from right to left. I have two problems:
I have been experimenting with Hebrew, and discovered to my amazement
you don't have to do anything to make it flow right to left. See
http://mindprod.com/jgloss/hebrew.html
Presumably, Arabic works the same way. All you need worry about is
alignment.
see http://mindprod.com/jgloss/hebrew.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
polaris v - 06 Feb 2006 14:45 GMT
>>I'm developing an application that accepts Arabic string as input in text
>>field. The Arabic language is written from right to left so Im trying to use
[quoted text clipped - 9 lines]
>
>see http://mindprod.com/jgloss/hebrew.html
Thank you Roedy I got Idea about Locale class from your page
but still I don't understand how to customize the application
to be in arabic as default. Means the default language to input
string is arabic so I don't have to convert the language from the
keyboard. As well as the direction of text is from right to left.
Roedy Green - 07 Feb 2006 04:03 GMT
>Thank you Roedy I got Idea about Locale class from your page
>but still I don't understand how to customize the application
>to be in arabic as default. Means the default language to input
>string is arabic so I don't have to convert the language from the
>keyboard. As well as the direction of text is from right to left.
What happens when you ask Locale for the default? It is telling you
Arabic? If it is,then you could start using right alignments.
As for flipping the keyboard, the user can do that with a single
keystoke combination. It you really need to do that look how you flip
it in C and write a bit of JNI glue.
See http://mindprod.com/jgloss/jni.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.