• Post Reply Bookmark Topic Watch Topic
  • New Topic

plz help! can't input other charset in JTextField??

 
jiaquan sun
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear fridens! please help me!
I am writing a java application which will run under chinese
environment and accept japanese input. When I test this
function, there are some serious problem happend:
a)run under win2000 platform(chinese version):
1.if the JTextField is added in a JDialogs,japanese character
is correctly accepted.
2.if the JTextField is added in a JFrame(or it's sub component),
the japanese character which I have inputed immediately changed
to some irrespective chinese character.
b)run under win98 platform(chinese version):
the Japanese character can't be accepted at all! the JTextField
just display some nonsensical symbol.
(the IME can input japanese correctly in other windows application)
(my java application can display japanese character well)
I have test the JFC demo--"NotePad" under the j2sdk path,the result
is same as above.
is this JTextComponent's problem?
please tell me how I can input various charset correctly whether the
JTextComponent is added to a JDialogs or JFrame or whether the
application is running under win98 or win2000 platform??
please help! very thanks!
[ July 17, 2003: Message edited by: jiaquan sun ]
[ July 17, 2003: Message edited by: jiaquan sun ]
 
jiaquan sun
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
who can help me please!?
I can input chinese no problem under chinese version .
but why can't input japanese....
does JTextComponent automatically change the inputed data into local
default charset String?if so,What can I do to avoid this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!