• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Accepting the arabic character from keyboard in swing application !!

 
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pick up a copy of "Java Internationalization". It will clear up all of your problems.
http://www.amazon.com/exec/obidos/ASIN/0596000197/electricporkchop
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic