Class DirectoryFileFilter

All Implemented Interfaces:
FilenameFilter

public class DirectoryFileFilter extends FileFilter
A FileFilter which accepts directories only.
Author:
Joel Uckelman
  • Constructor Details

    • DirectoryFileFilter

      public DirectoryFileFilter()
  • Method Details

    • accept

      public boolean accept(File f)
      Description copied from class: FileFilter
      The accept test used by Swing file choosers.
      Specified by:
      accept in class FileFilter
      Returns:
      Whether the given file is accepted by this filter.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class FileFilter
      Returns:
      A description of this filter to be displayed in the file chooser.