FileDialog.getFilter

Overview | Methods | This Package | All Packages

FileDialog.getFilter

Retrieves the current filter string (the string that determines the choices that appear in the Save as file type or Files of type box in the dialog box and allow the user to filter out the kinds of files that are shown in the dialog box).

Syntax

public final String getFilter()

Return Value

Returns a string that contains information about all the file filtering options available in the dialog box. For each filtering option, the filter string contains a description of the filter, followed by the vertical bar (|), followed by the filter pattern. The strings for different filtering options are separated by the vertical bar. The following is an example of a filter string: "Text files (*.txt)|*.txt|All files (*.*)|*.*"

See Also   setFilter