Microsoft SDK for Java

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

© 1999 Microsoft Corporation. All rights reserved. Terms of use.