Article View: borland.public.jbuilder.java.swing
Article #174i18n in swing, trouble
From: Schlum
Date: Mon, 12 Jun 2006 05:15
Date: Mon, 12 Jun 2006 05:15
20 lines
1768 bytes
1768 bytes
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
Technical Details
Message-ID:
<448cf85c$0$9015$626a54ce@news.free.fr>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news-fra1.dfn.de!news.ispa.de!news2.arglkargh.de!news.wiretrip.org!proxad.net!cleanfeed1-b.proxad.net!nnrp8-2.free.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,93776c528b5065cc,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news-fra1.dfn.de!news.ispa.de!news2.arglkargh.de!news.wiretrip.org!proxad.net!cleanfeed1-b.proxad.net!nnrp8-2.free.fr!not-for-mail Date: Mon, 12 Jun 2006 14:15:09 +0900 From: Schlum <news@schlum.info> User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: i18n in swing, trouble Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 20 Message-ID: <448cf85c$0$9015$626a54ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 12 Jun 2006 07:15:08 MEST NNTP-Posting-Host: 222.1.103.254 X-Trace: 1150089308 nnrp8-2.free.fr 9015 222.1.103.254:1387 X-Complaints-To: abuse@proxad.net