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 JFileFilter.java

/**
 * A simple FileFilter class that works by filename extension, like the one in
 * the JDK demo called ExampleFileFilter, which has been announced to be
 * supported in a future Swing release.
 */
public class JFileFilter extends javax.swing.filechooser.FileFilter {

From source file ffx.potential.parsers.INTFileFilter.java

/**
 * The INTFileFilter class is used to choose TINKER Internal Coordinate (*.INT)
 * files.
 *
 * @author Michael J. Schnieders
 * @since 1.0

From source file ffx.potential.parsers.XYZFileFilter.java

/**
 * The XYZFileFilter class is used to choose a TINKER Cartesian Coordinate
 * (*.XYZ) file.
 *
 * @author Michael J. Schnieders
 * @since 1.0

From source file ffx.potential.parsers.PDBFileFilter.java

/**
 * The PDBFileFilter class is used to choose a Protein Databank (*.PDB) file.
 *
 * @author Michael J. Schnieders
 * @since 1.0
 *

From source file EasyFileFilter.java

/**
 * 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.

From source file MyFilterChooser.java

class SimpleFileFilter extends FileFilter {

    String[] extensions;

    String description;

From source file xmv.solutions.commons.ExcelFile.java

class ExcelFileFilter extends FileFilter {

    // Accept all directories and all gif, jpg, tiff, or png files.
    public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;

From source file FilterSample.java

class ExtensionFileFilter extends FileFilter {
    String description;

    String extensions[];

    public ExtensionFileFilter(String description, String extension) {

From source file display.ANNFileFilter.java

class ANNFileFilter extends FileFilter {

    //file filter for loading the three kinds of neural networks
    public boolean accept(File file) {
        if (file.getName().endsWith(".ffn") //ffn = feed forward network
                || file.getName().endsWith(".som")) //som = self-organizing map

From source file FileChooserDemo2.java

class ImageFilter extends FileFilter {

    // Accept all directories and all gif, jpg, tiff, or png files.
    public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;