The moose likes Java in General and the fly likes text input - alphabets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "text input - alphabets" Watch "text input - alphabets" New topic
Author

text input - alphabets

Craig Whiteford
Greenhorn

Joined: Dec 16, 2002
Posts: 3
I'm making an app that has to accept Japanese text, and ONLY Japanese text into a JTextfield.
How can I ensure that this is the default and unchangeable input language?
Hope you can help, I know it's a bit off the beaten track.
Tim Perkuhn
Greenhorn

Joined: Jan 31, 2003
Posts: 17
Take a look at java.lang.Character.UnicodeBlock!
Craig Whiteford
Greenhorn

Joined: Dec 16, 2002
Posts: 3
er... yes, I looked at that but I'm really not that proficient with java to make good use of your suggestion - could you, or anyone , be a little bit more specific?
It's not that I'm trying to prevent non-japanese characters *as such*, but I want japanese to be the default language the field accepts.
Craig Whiteford
Greenhorn

Joined: Dec 16, 2002
Posts: 3
I suppose you could say it's a IME thing.
Tim Perkuhn
Greenhorn

Joined: Jan 31, 2003
Posts: 17
Well, i didn't use the class by myself, so don't count on my words.
The Class has one method "public static final Character.UnicodeBlock of (char c);"
you call that method and compare the result with one of the constants defined in that class.
 
 
subject: text input - alphabets
 
Threads others viewed
Problem while storing Japanese characters in Oracle 9i
Multilingual Support in JavaScript.
Japanese Text Not Dispaly
japanese problem in Tomcat
converting japanese characters into byte code
developer file tools