i18n in Swing, trouble.  
Author Message
Schlum





PostPosted: 2006-6-12 13:14:00 Top

java-programmer, i18n in Swing, trouble. Hi,

I am building my first Gui with Swing, and in the same time I need to
use the i18n to make it work in Japanese and English.

I use Eclipse and its great Visual Editor to save time, all my files are
utf8 encoded. And, I am under WinXp...

My trouble is the following :
-> If I make a jMenu with some japanese hardcoded text, it appears fine
in my application.
-> If I use a ResourceBundle to get the text, I have garbage. I use the
following line: myMenu.setText(myBundleResource.getString("myTest"));
The .properties files for the japanese is also in Utf8

Do you have any idea why the text in the .properties file is not passed
correctly ? Any help would be really appreciated.

Best Regards,
Schlum