public class JDFileFilter
extends javax.swing.filechooser.FileFilter
Constructor and Description |
---|
JDFileFilter(java.lang.String desc,
java.lang.String[] ext)
Construct a File filter for the set of extension.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f)
Returns true if the specified file has an allowed extension.
|
java.lang.String |
getDescription()
Return the description of this FileFilter
|
public JDFileFilter(java.lang.String desc, java.lang.String[] ext)
desc
- Description of this filterext
- Extension setpublic boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
f
- File to be tested.public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter