SaveFileDialog.setOverwritePrompt

Overview | Methods | This Package | All Packages

SaveFileDialog.setOverwritePrompt

Sets 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 void setOverwritePrompt( boolean value )

Parameters

value

Set to true if the dialog box prompts the user before overwriting an existing file if the user specifies a file name that already exists; set to false if the dialog box automatically overwrites the existing file without prompting the user for permission. The default value is true. If the user chooses to overwrite the file, the dialog box closes; otherwise, the dialog box remains open. The validateNames property must also be set to true for the user to be prompted for permission.

Remarks

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

See Also   getOverwritePrompt