Sponsored Link •
|
Advertisement
|
Advertisement
|
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:
> The compilation error is because javax.swing.filechooser.FileFilter is a class, not an interface. This is an easy mistake to make, since java.io.FileFilter is an interface. Brian, thanks for the quick response. Your answer may be correct, but it still doesn't help me with filtering files in a file dialog. :) In Core Java, it says that javax.swing.filechooser.FileFilter is an interface and it shows example code for implemeting it? 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.
Replies:
|
Sponsored Links
|