When my Java application is run on a native chinese windows XP machine, the JfileChooser shows box characters anywhere that chinese characters appear. This includes the file names that you can choose, as well as the labels for buttons and fields.
I know that this is due to an incorrect font being used in the JFileChooser for displaying text, however using the .setFont() method on the JFileChooser with a good chinese font has had no effect. Any ideas?
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Joined: Aug 18, 2004
Okay, this was actually due to using the JGoodies looks jar (version 1.2.2.jar) to set the global look and feel for the application. Appears that chinese characters aren't supported very well in that.
However, their latest version 2.0.1.jar has fixed it and works fine with chinese characters.