Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem displaying Japanese characters in Swing?

800371Feb 26 2009 — edited Feb 26 2009
Greetings all,

I use Debian lenny and I can see Japanese character in my browser,email client (IceDove) and also can type them in Terminal without any problem.

In the Swing application I am working on now ,I want to use Japanese characters.When I try following ,all I see is squares instead of characters:
javax.swing.JTextArea text = new javax.swing.JTextArea();
text.setFont(new Font("Bitstream Cyberbit", Font.PLAIN, 20));
text.setText("\u4eca\u65e5\u306f");
Do I specifically have to set the font in order to display Japanese characters?
Why wouldn't Swing display Japanese characters even though they are installed properly?

Thanks in advance,
Umanga
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2009
Added on Feb 26 2009
3 comments
367 views