Module org.jpo
Package org.jpo.gui

Class XmlFilter


public class XmlFilter extends FileFilter
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 Details

    • XmlFilter

      public XmlFilter()
  • Method Details

    • accept

      public boolean accept(File file)
      accepts directories and files ending in .xml
      Specified by:
      accept in class FileFilter
      Parameters:
      file - file
      Returns:
      true if the files ends in .xml
    • getDescription

      public String getDescription()
      returns the description "XML Files"
      Specified by:
      getDescription in class FileFilter
      Returns:
      the description "XML Files"