| 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
|
|
|