🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3281

Re: File Dialog - File Extensions ?

#3281
From: Tim Shelley
Date: Tue, 03 Mar 1998 00:00
24 lines
1403 bytes
Hi,

The only way I've currently found to do this is to use the setFile()
method before you show the File Dialog, i.e.

fileDialog.setFile("*.txt");
fileDialog.setVisible(true);

As of yet I believe there is no way to create FileExtension filters.

Tim.

Stefan Zueckert wrote:

> Hi
>
> I have open a File Dialog to open a File.
> Now I want to open only .txt files.
> How can I create FileExtension Filter in a File Dialog ??
>
> Thanks
> Stefan
> szueckert@incases.com
Technical Details
Message-ID: <34FBC644.ED08DD3A@objectuk.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34FAB216.1F5B7A57@incases.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,66726f55d32ff413
X-Google-Attributes: gid1089d0,public
X-Google-Thread: 101c4c,66726f55d32ff413
X-Google-Attributes: gid101c4c,public
X-Google-Thread: f74b3,66726f55d32ff413
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10b2dd,66726f55d32ff413
X-Google-Attributes: gid10b2dd,public
From: Tim Shelley <tim_shelley@objectuk.co.uk>
Subject: Re: File Dialog - File Extensions ?
Date: 1998/03/03
Message-ID: <34FBC644.ED08DD3A@objectuk.co.uk>
X-Deja-AN: 330333895
Content-Transfer-Encoding: 7bit
References: <34FAB216.1F5B7A57@incases.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,borland.public.jbuilder.javabeans.using,borland.public.jbuilder.javabeans.writing