Class WinFileFilter


public class WinFileFilter extends FileFilter
A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about. Extensions are of the type ".foo", which is typically found on Windows and Unix boxes, but not on Macinthosh. Case is ignored.
  • Constructor Details

    • WinFileFilter

      public WinFileFilter()
      Creates a file filter. If no filters are added, then all files are accepted.
      See Also:
    • WinFileFilter

      public WinFileFilter(String extension)
      Creates a file filter that accepts files with the given extension. Example: new ExampleFileFilter("jpg");
      See Also:
    • WinFileFilter

      public WinFileFilter(String extension, String description)
      Creates a file filter that accepts the given file type. Example: new ExampleFileFilter("jpg", "JPEG Image Images"); Note that the "." before the extension is not needed. If provided, it will be ignored.
      See Also:
    • WinFileFilter

      public WinFileFilter(String[] filters)
      Creates a file filter from the given string array. Example: new ExampleFileFilter(String {"gif", "jpg"}); Note that the "." before the extension is not needed and will be ignored.
      See Also:
    • WinFileFilter

      public WinFileFilter(String[] filters, String description)
      Creates a file filter from the given string array and description. Example: new ExampleFileFilter(String {"gif", "jpg"}, "GIF and JPG Images"); Note that the "." before the extension is not needed and will be ignored.
      See Also:
  • Method Details