Example usage for javax.swing.filechooser FileFilter subclass-usage

List of usage examples for javax.swing.filechooser FileFilter subclass-usage

Introduction

In this page you can find the example usage for javax.swing.filechooser FileFilter subclass-usage.

Usage

From source file GenericFileFilter.java

public class GenericFileFilter extends FileFilter {
    private String[] fileExts;

    private String description;

    private String extension;

From source file ExtensionFileFilter.java

class ExtensionFileFilter extends FileFilter {
    String description;

    String extensions[];

    public ExtensionFileFilter(String description, String extension) {

From source file AudioFilter.java

class AudioFilter extends FileFilter {
    @Override
    public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;
        }

From source file CustomFileFilter.java

public class CustomFileFilter extends FileFilter {
    private Hashtable filters = null;

    private String description = null;

    private String fullDescription = null;

From source file Main.java

class MyFilter extends javax.swing.filechooser.FileFilter {
    public boolean accept(File file) {
        String filename = file.getName();
        return filename.endsWith(".java");
    }

From source file SimpleFileFilter.java

/**
 * A simple file filter for a particular file extension.
 *  
 * @author <a href="http://jheer.org">jeffrey heer</a>
 */
public class SimpleFileFilter extends FileFilter {

From source file Main.java

class FolderFilter extends javax.swing.filechooser.FileFilter {
    @Override
    public boolean accept(File file) {
        return file.isDirectory();
    }

From source file SuffixFilenameFilter.java

/**
 * Files filter that filters files by their suffix (or extension).
 * It can be used as file filter for {@link javax.swing.JFileChooser} or
 * as file filter for io operations (@link java.io.File#listFiles(java.io.FilenameFilter)}.
 * 
 * @version $Name:  $ - $Revision: 1.1.1.1 $ - $Date: 2005/04/07 18:36:22 $

From source file com.gas.common.ui.util.ExecutableFileFilter.java

/**
 *
 * @author Dunqiang
 */
public class ExecutableFileFilter extends FileFilter {

From source file com.mirth.connect.client.ui.MirthFileFilter.java

public class MirthFileFilter extends javax.swing.filechooser.FileFilter {
    private String fileExtension;

    public MirthFileFilter(String fileExtension) {
        this.fileExtension = fileExtension;
    }