How to show arabic and arabic in a JTextBox when user enter the numbers?
Joined: Jul 14, 2005
Thank you for reading my post.
I am looking for a way to show Arabic digits in the JTextBox when user is entering the digitst instead of showing Europian digits. User keyboard layout is Arabic but numbers are shown in euopian instead of arabic.
Joined: Apr 09, 2009
I have never done this, but I would suggest taking a look at the following link:
and then adding a KeyListener to your TextBox. In the listener, whenever the user presses a numeric key you can convert the text by using the above code. It won't be the most efficient way, but it should work fine for small amount of data.