SaveFileDialog.getOverwritePrompt

Overview | Methods | This Package | All Packages

SaveFileDialog.getOverwritePrompt

Retrieves a boolean value indicating whether the Save As dialog box should display a warning if the user specifies a file name that already exists.

Syntax

public final boolean getOverwritePrompt()

Return Value

Returns true if the dialog box prompts the user before overwriting an existing file if the user specifies a file name that already exists; returns false if the dialog box automatically overwrites the existing file without prompting the user for permission.

Remarks

The warning allows the user to specify whether to overwrite the existing file.

See Also   setOverwritePrompt