Microsoft SDK for Java

FileDialog.promptFileOverwrite

Prompts the user when a file is about to be overwritten.

Syntax

protected boolean promptFileOverwrite( String fileName )

Parameters

fileName

The name of the file to write to.

Remarks

This method is invoked when the overwritePrompt property is set to true and the specified file already exists. A return value of false prevents the dialog box from closing.

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