Originally posted by mahmoud saleh:
i have a JTextField For Inputting numbers only
when trying to input digits,the windos settings is to write in english
so Numbers Are Typed 0123456789
but i want when the user tries to input numbers it's automatically typed in arabic numbers,any ideas how to do that?
First of all, we should be careful with terminology because in
many parts of the world 0123456789 are called "Arabic numerals".
(as opposed to Roman numerals: I, II, III, IV, V, VI, VII, VIII, IX)
But I take it you want to see ٠١٢٣٤٣٥٦٧٨٩ from unicode
block 0600?
(For lack of a better name, I'll call these "Arabic Arabic" numerals.)
If so, I'm not sure this best way, but it should work:
There shouldn't be any left-to-right vs. right-to-left orientation issues.
[ October 10, 2008: Message edited by: Brian Cole ]