views:

940

answers:

2

How to display unicode characters (e.g. japanese) in the title of a JFrame in java swing in a Windows XP m/c without the Japanese language pack? It looks like setting the title text to Japanese unicode characters and the font to MS Mincho is not enough. While this is all you need to do to display unicode characters in Swing labels?

+1  A: 
VonC
A: 

Thanks!. I saw that post. Things are working fine with Swing components. It is the JFrame title that is giving trouble. I am using windows XP SP2, so MS Mincho is already available in the windows fonts folder. As for changing the JRE settings, I am using JDK 1.6.0_03 and I did not find any font.properties file in the /jre/lib folder.

That means you may need to create the appropriate font.properties file. I just completed my answer with 1.6.0 links describing those files.
VonC
Actually, with Java5+, you do not need font.properties anymore. See my extended answer
VonC