Article View: borland.public.jbuilder.java.swing
Article #12332Re: customizing JFileChooser
From: Richard Wilkman
Date: Fri, 22 Jan 1999 00:00
Date: Fri, 22 Jan 1999 00:00
79 lines
3186 bytes
3186 bytes
Mari-Mai: You might post over in the multi-lingual apps group. Someone there may know of a quirk or a trick for that particular component. It could very well be "English-only"; wouldn't be the first time. In fact, you might just want to go to the Bug Parade at JDC and search on JFileChooser bugs. -Rich Mari-Mai Henaff wrote: > > 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 > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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:
<36A8B7C0.6382D713@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36A75516.3B33A241@co2w3.fr> <36A7BAC1.8055812C@inprise.com> <36A83D65.10131915@co2w3.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,dc4b4e4f711826c9 X-Google-Attributes: gid111d45,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: customizing JFileChooser Date: 1999/01/22 Message-ID: <36A8B7C0.6382D713@inprise.com> X-Deja-AN: 435699007 Content-Transfer-Encoding: 8bit References: <36A75516.3B33A241@co2w3.fr> <36A7BAC1.8055812C@inprise.com> <36A83D65.10131915@co2w3.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