Results 1 to 8 of 8
- 01-10-2012, 10:51 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 4
- Rep Power
- 0
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.
- 01-10-2012, 12:36 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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?
- 01-11-2012, 10:02 AM #3
Member
- Join Date
- Jan 2012
- Posts
- 4
- Rep Power
- 0
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.
- 01-11-2012, 12:14 PM #4
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 01-12-2012, 05:11 PM #5
Member
- Join Date
- Jan 2012
- Posts
- 4
- Rep Power
- 0
Re: default languge in java textfield
i tried searching this problem in google. I want to write in textfield.
I am not lazy.
- 01-13-2012, 04:54 AM #6
Re: default languge in java textfield
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.s there a way of making the default input language in the box hebrew, regardless of what is currently set in the language bar?
- 01-15-2012, 01:27 PM #7
Member
- Join Date
- Jan 2012
- Posts
- 4
- Rep Power
- 0
- 01-15-2012, 02:55 PM #8
Similar Threads
-
Can java interact with Firefox and recognise a TextField?
By Mr.abe90 in forum New To JavaReplies: 5Last Post: 05-30-2011, 03:31 AM -
Java Look & Feel: how to change default settings?
By mirsev in forum New To JavaReplies: 0Last Post: 07-21-2010, 06:48 PM -
looking for help in Java languge
By Sal in forum New To JavaReplies: 8Last Post: 03-26-2010, 05:36 PM -
[SOLVED] Access to default session deniedAccess to default session denied
By jazz2k8 in forum NetworkingReplies: 1Last Post: 03-10-2009, 01:12 PM -
How to change the default Java
By integrator in forum New To JavaReplies: 4Last Post: 02-01-2008, 03:19 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks