Load font.properties.ja file
Hi,
Our swing application will be using in Japan so we require to display Japanese character and we are applying "Internationalization" in our design. I have already install the Japanese font in my XP System for testing purpose.
Now while I am trying to show Unicode character (Japanese), it only works if I replace thefont.properties file withfont.properties.ja file.
The following is sample class that I have used:
publicclass JapaneseCharacterFrameextends JFrame{
public JapaneseCharacterFrame(){
super("\u30d7\u30e9");
JLabel label =new JLabel("\u30d7\u30e9");
this.getContentPane().add(label);
this.setSize(300, 200);
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.setVisible(true);
}
publicstaticvoid main(String[] args){
Locale.setDefault(Locale.JAPAN);
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Tokyo"));
new JapaneseCharacterFrame();
}
}
As you can see, I am setting up theTimeZone andLocale to Japan but it doesn't work if I don't do the replace. But the japanese charcter properly appears on the Title bar but on in the JLabel.
How do I load the font.properties.ja file without rename it?
What I am missing my test class?
5 Duke point for who ever can help me out.
P.S. We are using JDK 1.4.XX_XX.
Thanks
Duke (My real name).

