πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: customizing JFileChooser

#12329
From: Mari-Mai Henaff
Date: Fri, 22 Jan 1999 00:00
52 lines
2257 bytes
Thanks for your answer.
I did set the Default Locale to French :
Locale.setDefaultLocale(Locale.FRANCE)
It didn't change anything. The labels in the JFileChooser are still
displayed in
English. May be i'm doing something wrong ...
If you have other ideas, it woud help me.
Thanks,
Mari-Mai.

Richard Wilkman a οΏ½crit :

> Mari:
>
> If Javasoft wrote that one right, those strings should be resourced
> and if Java noticed it was running on a French locale you'd get
> French.  You should never have to do setText() type items differently
> in a different locale.  Does the same behaviour happen if you start up
> your app with a French locale set?
>
> The old file chooser was really a peer for the Win32 Open dialog which
> is locale sensitive (as in it works off the locale set for Windows).
>
> -Rich
>
> Mari-Mai Henaff wrote:
> >
> > Hi,
> >
> > Is there a way to customize the JFileChooser, in order to
> > translate the labels "Look in", "File name:", "Files of type:"
> > and "Cancel" in an other language (in French). The only
> > label that can be easily changed is the one of the approve
> > button.
> >
> > Thanks,
> > Henaff.
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Senior Quality Assurance Engineer
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored.  If I have time, I'll respond, but you  have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <36A83D65.10131915@co2w3.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36A75516.3B33A241@co2w3.fr> <36A7BAC1.8055812C@inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,dc4b4e4f711826c9
X-Google-Attributes: gid111d45,public
From: Mari-Mai Henaff <mari-mai.henaff@co2w3.fr>
Subject: Re: customizing JFileChooser
Date: 1999/01/22
Message-ID: <36A83D65.10131915@co2w3.fr>
X-Deja-AN: 435562317
Content-Transfer-Encoding: 8bit
References: <36A75516.3B33A241@co2w3.fr> <36A7BAC1.8055812C@inprise.com>
X-Accept-Language: fr
Content-Type: text/plain; charset=iso-8859-1
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing