> Im developing an application that accepts arabic string in
> a text field. just I want to customize the application
[quoted text clipped - 4 lines]
>
> thanks.
You might try looking at the Locale class. Something like:
Locale.setDefault("ar","SA");
for Saudi Arabic.
Mark
Thomas Fritsch - 06 Feb 2006 18:49 GMT
> You might try looking at the Locale class. Something like:
>
> Locale.setDefault("ar","SA");
>
> for Saudi Arabic.
As an alternative you can call your java application with some special
system properties:
java -Duser.language=ar -Duser.region=SA ...
The effect is the same as above: The default locale is set to ar_SA.

Signature
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
smarto59@hotmail.com - 06 Feb 2006 19:10 GMT
Thank you Thomas and the sun of Thomas Im glad to hear from you.
in fact I've tried Locale class already and this is a peice of my code:
Locale locale = new Locale("ar","SA");
Locale.setDefault(locale);
but still when i type a text in the text field it appears in English.
and I
have to convert it in to arabic from the keyboard abbrivaition.
Also Im trying to use Font.layoutGlyphVector to change the
direction of the text -right to left- but I don't know how to do that.
so help plz
Roedy Green - 06 Feb 2006 23:15 GMT
>but still when i type a text in the text field it appears in English.
You have to swap the keyboard driver. I don't think Java does this
for you. If you are using windows, go in the control panel keyboard
and set up a hot swap between Arabic and English keyboard layouts.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Roedy Green - 06 Feb 2006 23:13 GMT
>You might try looking at the Locale class. Something like:
>
> Locale.setDefault("ar","SA");
You can also discover the default locale. See
http://mindprod.com/jgloss/locale.html

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