Module java.desktop

Class FileFilter

    • Constructor Detail

      • FileFilter

        public FileFilter()
    • Method Detail

      • accept

        public abstract boolean accept​(File f)
        Whether the given file is accepted by this filter.
        Parameters:
        f - the File to test
        Returns:
        true if the file is to be accepted
      • getDescription

        public abstract String getDescription()
        The description of this filter. For example: "JPG and GIF Images"
        Returns:
        the description of this filter
        See Also:
        FileView.getName(java.io.File)