This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Thanks
Posted by Thi on December 01, 2001 at 2:07 PM
Thank you Brian. Using "extend' made it work. > In Core Java, it says that javax.swing.filechooser.FileFilter is an interface and it shows example code for implemeting it?
> This error from the 4th edition is retracted in the Bug List on Cay Horstmann's web site.
> When I replaced it with java.io.FileFilter, the setFileFilter method won't accept it as an argument because it only accepts javax.swing.filechooser.FileFilter.
> You should, rather, make class TxtFilter extend javax.swing.filechooser.FileFilter . Sorry to have been confusing in this matter.
Replies:
|