This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.filechooser
class FileFilter

java.lang.Object extended by javax.swing.filechooser.FileFilter
Direct Known Subclasses:
BasicFileChooserUI.AcceptAllFileFilter, FileNameExtensionFilter

public abstract class FileFilter
extends Object

FileFilter is an abstract class used by {@code JFileChooser} for filtering the set of files shown to the user. See {@code FileNameExtensionFilter} for an implementation that filters using the file name extension.

A FileFilter can be set on a JFileChooser to keep unwanted files from appearing in the directory listing. For an example implementation of a simple file filter, see yourJDK/demo/jfc/FileChooserDemo/ExampleFileFilter.java. For more information and examples see How to Use File Choosers, a section in The Java Tutorial.


Constructor Summary

          
 
Method Summary
abstract boolean

          Whether the given file is accepted by this filter.
abstract String

          The description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFilter

public FileFilter()
Method Detail

accept

public abstract boolean accept(File f)
Whether the given file is accepted by this filter.

Parameters:
f

getDescription

public abstract String getDescription()
The description of this filter. For example: "JPG and GIF Images"



This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.