Chinese « JTextField « Java Swing Q&A





1. JTextField to read chinese character    stackoverflow.com

I need to read chinese character through java input fields. I have installed chinese in my system and I have set system locale to chines. I could type chinese character using US ...

2. Chinese input in JTextArea or JTextField ?    forums.oracle.com

3. Using JTextField data to display Chinese Character    forums.oracle.com

Uncle_Alice, I had tried your method but there is a slight problem though. As instructed, I used the following code, char ch = (char)Integer.parseInt(str.substring(2), 16); but how do I display on JPanel? I check g.drawChars(), g.drawString(), conversion of char to string but to no avail. Another thing, using System.out.println(ch), it shows a '?' when i am using Sim Sun. Does it ...