java.lang.Object
javax.swing.filechooser.FileFilter
org.jpo.gui.XmlFilter
This class overrides the abstract javax.swing.filechoose.FileFilter class
(not the java.io.FileFilter) to provide a true or false indicator to using
JFileChoosers whether the file is a directory or image ending in .xml.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accepts directories and files ending in .xmlreturns the description "XML Files"
-
Constructor Details
-
XmlFilter
public XmlFilter()
-
-
Method Details
-
accept
accepts directories and files ending in .xml- Specified by:
accept
in classFileFilter
- Parameters:
file
- file- Returns:
- true if the files ends in .xml
-
getDescription
returns the description "XML Files"- Specified by:
getDescription
in classFileFilter
- Returns:
- the description "XML Files"
-