Class z390.SelectFileType

Enclosing class:
z390

private class z390.SelectFileType extends FileFilter
define accept and getdescription methods for file chooser to filter files to just select_file_type if any
  • Constructor Details

    • SelectFileType

      public SelectFileType()
      Dummy constructor - no initialization needed
  • Method Details

    • accept

      public boolean accept(File f)
      accept a file
      Specified by:
      accept in class FileFilter
      Parameters:
      f - file object
      Returns:
      true if file selected; false otherwise
    • getDescription

      public String getDescription()
      get description for file type
      Specified by:
      getDescription in class FileFilter
      Returns:
      text for file type
    • getExtension

      private String getExtension(File f)
      get extension from file object
      Parameters:
      f - file object
      Returns:
      file extension