The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

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:

Re: javax.swing.filechooser.FileFilter

Posted by Brian Sanders on November 29, 2001 at 10:54 AM

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:
  • Thanks Thi December 01, 2001 at 2:07 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us