Article View: borland.public.jbuilder.java.swing
Article #7488Re: changing the language in JColorChooser and JFileChooser dialogs
From: Luc BONAMEAU
Date: Wed, 24 Jan 2001 16:06
Date: Wed, 24 Jan 2001 16:06
40 lines
2133 bytes
2133 bytes
Thanks again for your help.
Concerning languages in JWhateverChooseers, as you known, you need to change
several interface component properties.
Say you need a JFileChooser to open a file, you need to change:
* The title of the frame
* The "Look in" , "Files of type" label texts
* The "Open" and "Cancel" button texts
Does a UIManager slot exist for each of these properties and if yes, how do
you find them out ?
"Torsten Welches" <torsten.welches@who.cares.netcologne.de> a οΏ½crit dans le
message news: 3a6edc71$1_2@dnews...
>
> Luc,
>
> I don't know of any "automatic" way.
> AFAIK the easiest is to change the appropriate UIManager slots:
> UIManager.put("FileChooser.openButtonText", "yourText");
> and so on...
>
> To be politically correct you would put your texts into a
> ResourceBundle of cause. ;-)
>
> Torsten
>
> "Luc BONAMEAU" <alorsc@excite.com> wrote:
> >Does anyone know how to change the language of JColorChooser and
> >JFileChooser dialogs ?
> >I tried to change the current Locale but whatever the value is, the
dialogs
> >always open in English.
> >
> >
>
Technical Details
Message-ID:
<94muh9$ai11@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!209.249.123.233.MISMATCH!xfer10.netnews.com!netnews.com!feed2.news.rcn.net!rcn!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<94miun$odh5@bornews.inprise.com> <3a6edc71$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,e9ad02bd7857a1b X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-24 08:09:38 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!209.249.123.233.MISMATCH!xfer10.netnews.com!netnews.com!feed2.news.rcn.net!rcn!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: "Luc BONAMEAU" <alorsc@excite.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: changing the language in JColorChooser and JFileChooser dialogs Date: Wed, 24 Jan 2001 17:06:31 +0100 Organization: Arcad Software Lines: 42 Message-ID: <94muh9$ai11@bornews.inprise.com> References: <94miun$odh5@bornews.inprise.com> <3a6edc71$1_2@dnews> Reply-To: "Luc BONAMEAU" <alorsc@excite.com> NNTP-Posting-Host: f-arc.nwc.fr X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400