You may design a class that extends FileFilter....
And override the two methods getDescription() and accept()
All filtering operations should be done on overriden accept(File) method....
You may browse the FileFilter class in src file(zip) that can be found inside jdk folder....(just in case you are curious about its implementation)
Hope that helps,
sukatoa
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Last edited by sukatoa : 06-12-2008 at 05:31 PM.
|