🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7484

Re: changing the language in JColorChooser and JFileChooser dialogs

#7484
From: Torsten Welches
Date: Wed, 24 Jan 2001 13:45
20 lines
1454 bytes
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: <3a6edc71$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!207.105.83.65
References: <94miun$odh5@bornews.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e9ad02bd7857a1b
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-24 05:52:07 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: changing the language in JColorChooser and JFileChooser dialogs
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 193.158.55.74 193.158.55.74    
References:  <94miun$odh5@bornews.inprise.com> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a6edc71$1_2@dnews>
Date: 24 Jan 2001 05:45:21 -0800
X-Trace: 24 Jan 2001 05:45:21 -0800, 207.105.83.65
Lines: 21
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!207.105.83.65