Class ExtensionFilter

java.lang.Object
javax.swing.filechooser.FileFilter
it.betastudio.adbtoolbox.libs.ExtensionFilter

public class ExtensionFilter extends FileFilter
  • Constructor Details

    • ExtensionFilter

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

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

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

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

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