Results 1 to 8 of 8
  1. #1
    ren2012 is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default default languge in java textfield

    hello everyone!
    my problem today is this:

    i have a text input box in which i want to insert Hebrew (RTL language) text. now, the RTL support i need is basic, and thats easy enough to do. however, for entering hebrew in the box, the user has to set hebrew in his windows language bar. is there a way of making the default input language in the box hebrew, regardless of what is currently set in the language bar?

    note - the hebrew characters are showing just fine, its just that to enter them you have to make sure the language bar is set to hebrew as well.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default Re: default languge in java textfield

    So you mean that a way to write into your textbox in Hebrew without changing the language from the language tool bar?

  3. #3
    ren2012 is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default Re: default languge in java textfield

    yes.
    i mean to write into my textbox in Hebrew without changing the language from the language tool bar.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: default languge in java textfield

    What's a text input box? Or, for that matter, a java textfield? Or a textbox?

    If you expect correct help on a Java forum, you have to take the trouble to specify the Java classes involved in your problem, always remembering that Java is case sensitive. It would also help you to capitalize the first word of eaxh sentence and the singular first person I. Failure to do so implies laziness in the extreme, and very few here are interested in helping a lazy person.

    To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    ren2012 is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default Re: default languge in java textfield

    i tried searching this problem in google. I want to write in textfield.
    I am not lazy.

  6. #6
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: default languge in java textfield

    s there a way of making the default input language in the box hebrew, regardless of what is currently set in the language bar?
    Not really. The input language (i.e. the character set) is based on the keyboard mapping coming from the host OS. If your keyboard mapping is set to english, then java is essentially getting ASCII codes for letters (it's actually unicode, but ASCII and Unicode match for at least the first 128 [maybe 256] characters). However, hebrew is going to be further down the list in the unicode pallet. If your input key mapping is mapped to hebrew characters, then thats what java will receive in the input box. You could do some kind of crazy manual conversion, but generally input is something that based on the host environment.

  7. #7
    ren2012 is offline Member
    Join Date
    Jan 2012
    Posts
    4
    Rep Power
    0

    Default Re: default languge in java textfield

    Quote Originally Posted by quad64bit View Post
    Not really. The input language (i.e. the character set) is based on the keyboard mapping coming from the host OS. If your keyboard mapping is set to english, then java is essentially getting ASCII codes for letters (it's actually unicode, but ASCII and Unicode match for at least the first 128 [maybe 256] characters). However, hebrew is going to be further down the list in the unicode pallet. If your input key mapping is mapped to hebrew characters, then thats what java will receive in the input box. You could do some kind of crazy manual conversion, but generally input is something that based on the host environment.
    thank you.
    but there is solution for this problem?
    i need in it for my project.
    :-)

  8. #8
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: default languge in java textfield

    Quote Originally Posted by ren2012 View Post
    i tried searching this problem in google. I want to write in textfield.
    I am not lazy.
    No? But lazy enough to neglect proper capitalizing.

    So, what's a textfield?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 5
    Last Post: 05-30-2011, 03:31 AM
  2. Java Look & Feel: how to change default settings?
    By mirsev in forum New To Java
    Replies: 0
    Last Post: 07-21-2010, 06:48 PM
  3. looking for help in Java languge
    By Sal in forum New To Java
    Replies: 8
    Last Post: 03-26-2010, 05:36 PM
  4. Replies: 1
    Last Post: 03-10-2009, 01:12 PM
  5. How to change the default Java
    By integrator in forum New To Java
    Replies: 4
    Last Post: 02-01-2008, 03:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •