🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFileChooser

#9956
From: Mike King
Date: Sat, 18 Dec 1999 00:00
39 lines
1269 bytes
Hi,

I'm not an expert, but have set the filename as follows:
    ....
    File directory =  new File("c:\\aaaa\\Interactions");
    File file = new File("Interact.int");
    ....

     JFileChooser chooser = new JFileChooser();
     chooser.setCurrentDirectory(directory);
     chooser.setSelectedFile(file);

Hope this helps,

Mike King



kreit wrote:

> Hello!
>
> Is it possible to change strings like:
> - 'File name'
> - 'Files of type'
> - 'Up one level'
> - ...
> in the JFileChooser component?
>
> Thanks in advance!
>
> Ljubo Brglez

--

Mike King Courses & Consulting
Tel: 27 11 781 0444
Fax: 27 11 886 9039
Web: www.metamod.com
Technical Details
Message-ID: <385B8857.860D3EA6@metamod.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <82t52k$j2a4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f2c8efca8c80a0f4
X-Google-Attributes: gid111d45,public
From: Mike King <mike@metamod.com>
Subject: Re: JFileChooser
Date: 1999/12/18
Message-ID: <385B8857.860D3EA6@metamod.com>
X-Deja-AN: 562305662
Content-Transfer-Encoding: 7bit
References: <82t52k$j2a4@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Mike King Courses & Consulting
Disposition-Notification-To: Mike King <mike@metamod.com>
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing