org.fife.rsta.ac.demo
Class ExtensionFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.fife.rsta.ac.demo.ExtensionFileFilter
public class ExtensionFileFilter
- extends FileFilter
A file filter for opening files with a specific extension.
- Version:
- 1.0
- Author:
- Robert Futrell
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtensionFileFilter
public ExtensionFileFilter(String desc,
String ext)
- Constructor.
- Parameters:
desc - A description of the file type.ext - The extension of the file type.
accept
public boolean accept(File f)
-
- Specified by:
accept in class FileFilter
getDescription
public String getDescription()
-
- Specified by:
getDescription in class FileFilter
Copyright © 2003-2011. All Rights Reserved.