🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18599

Using FilenameFilter

#18599
From: Kimmo P�ntiskoski
Date: Fri, 29 May 1998 00:00
17 lines
1142 bytes
Hi !

I've been trying to use java.io.FilenameFilter, but with no succes. I
created a class FileFilter whichs implements this interface. It has only
one method accept(File, String).
When I take new instance of the FileDialog and use method
setFilenameFilter to set the  FileFilter everything is ok. But when I
show the FileDialog with the method setVisible(true) nothing happens. As
far as I understand the FileDialog should call the accept method in the
FileFilter for every file in the current directory to determite if the
file should be shown.
Have I mist something or what ??

Any helped will be appreciated!

Kimmo P�ntiskoski
Technical Details
Message-ID: <356EC72A.873394F3@igd.fhg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,f501c8108f3b3cb3,start
X-Google-Attributes: gidf74b3,public
From: "Kimmo P�ntiskoski" <pontisko@igd.fhg.de>
Subject: Using FilenameFilter
Date: 1998/05/29
Message-ID: <356EC72A.873394F3@igd.fhg.de>
X-Deja-AN: 357650704
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language