Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to replace the unicodes in java using keytyped or keypressed function

  1. #1
    Junior Member
    Join Date
    Oct 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to replace the unicodes in java using keytyped or keypressed function

    I had an assignment to create a note pad in java, and i am pretty much done with it, but one more thing i have to do with it is that the notepad should also type in urdu language other than english. In order to do that I have to change the Keycodes (the unicode behind every character), and replace it with the unicode of urdu letters by using keylistener and keytyped or keypressed function. I am really confused as i don't have any idea how to do that. Please Guys Help me out.
    Its like creating a new layout, so when i press "A" it should give "ا"

  2. #2
    Member
    Join Date
    Apr 2014
    Posts
    81
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: How to replace the unicodes in java using keytyped or keypressed function

    I don't know how the requirement in your last statement could possibly be done. English has 26 characters in the alphabet. How many does Urdu have? How could you possibly associate a one-to-one mapping like that?

    Internationalizing a project usually assumes that your users will be using a native language keyboard, and will be typing in their native language. But what you seem to be trying to do is translate from English to Urdu. Am I misunderstanding something?

Similar Threads

  1. Database trigger replace with Java Code.
    By nageshvk in forum JDBC & Databases
    Replies: 0
    Last Post: June 16th, 2014, 10:02 AM
  2. java replace correct number into letter
    By speaky in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 8th, 2014, 05:39 PM
  3. [SOLVED] keyListener keyPressed not working
    By hogsgonewild in forum What's Wrong With My Code?
    Replies: 19
    Last Post: October 13th, 2013, 02:34 PM
  4. keyPressed method not working?
    By TP-Oreilly in forum What's Wrong With My Code?
    Replies: 5
    Last Post: December 29th, 2011, 08:43 AM
  5. Help with Graphics class and keyPressed method
    By smashX in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 10th, 2011, 12:46 PM

Tags for this Thread