This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Accepting the arabic character from keyboard in swing application !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Accepting the arabic character from keyboard in swing application !!" Watch "Accepting the arabic character from keyboard in swing application !!" New topic
Author

Accepting the arabic character from keyboard in swing application !!

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
Hello,
I was trying to make a swing application which should do following:-
1. I want to provide a JTextField where a user can input the arabic character through his keyboard.
2. I should accept these arabic string in a variable and should convert these character into the unicode values.
3. after converting into the unicode values I want to store into the DB.
Now problem is point 1 first. I am not able to get it done. Perhaps the point 2 will also give trouble but as suggested by Jim Yingst
in my other thread it should not be much problem. Now I have following envoirment:-
1. Windows 2000.
2. Java 1.2
3. Arabic font Arabic transparent with me in my winnt/font directory, which helps me in wrting the arabic letters in the Microsoft Word.
4. Also set the Language settings for the system to arabic too in Regional settings of Control Panel.

but all above is of no use. Perhaps I have to play with font.properties of jre\lib directory, but how dont know.
I seems lost in this topic as this is becoming too confusing and complicating. I know somewhere I am missing something basics.
I would be highly obliged if you could help me to achieve this objective.
regards,
Arun Mahajan
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Pick up a copy of "Java Internationalization". It will clear up all of your problems.
http://www.amazon.com/exec/obidos/ASIN/0596000197/electricporkchop


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
Thanks Thomas for your reply... but it seems the solution you're offering me is a bit costly to me .
Could you please provide me some other option - perhaps some reference site etc. ?
Anyway thank you very much for your help...

regards,
Arun
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You might find The JavaDoc Internationalization Guide and the website JavaInternationalization.com helpful. Otherwise, try a thorough search on google - somebody might have put together an article discussing exactly what you're trying to do. Let us know if you come across anything good.
Good Luck.
[ August 25, 2002: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accepting the arabic character from keyboard in swing application !!