GB Tile Editor/src/it/elfgames/gameboy/TileEditor/utils/ImageFilter.java
public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;
        }

        String extension = Utils.getExtension(f);
        if (extension != null) {
            if (extension.equals(Utils.tiff) ||
                extension.equals(Utils.tif) ||
                extension.equals(Utils.gif) ||
                extension.equals(Utils.jpeg) ||
                extension.equals(Utils.jpg) ||
                extension.equals(Utils.bmp) ||
                extension.equals(Utils.png)) {
                    return true;
            } else {
                return false;
            }
        }

        return false;
    }
//Accept all directories and all gif, jpg, tiff, or png files.

Accept all directories and all gif, jpg, tiff, or png files.
Accept all directories and all gif jpg tiff or png files .
public boolean accept(File f) {
        if (f.isDirectory()) {
            return true;
        }
        String extension = Utils.getExtension(f);
        if (extension != null) {
            if (extension.equals(Utils.tiff) ||
                extension.equals(Utils.tif) ||
                extension.equals(Utils.gif) ||
                extension.equals(Utils.jpeg) ||
                extension.equals(Utils.jpg) ||
                extension.equals(Utils.bmp) ||
                extension.equals(Utils.png)) {
                    return true;
            } else {
                return false;
            }
        }
        return false;
    }
public boolean accept ( File f ) { if ( f . isDirectory ( ) ) { return true ; } String extension = Utils . getExtension ( f ) ; if ( extension != null ) { if ( extension . equals ( Utils . tiff ) || extension . equals ( Utils . tif ) || extension . equals ( Utils . gif ) || extension . equals ( Utils . jpeg ) || extension . equals ( Utils . jpg ) || extension . equals ( Utils . bmp ) || extension . equals ( Utils . png ) ) { return true ; } else { return false ; } } return false ; }
Accept all directories and all gif, jpg, tiff, or png files.
Accept all directories and all gif jpg tiff or png files .