Sets a boolean value indicating whether the dialog box accepts only valid Win32 file names.
public final void setValidateNames( boolean value )
value
Set to true if you want the dialog box to check file names to make sure they are valid Win32 file names before returning them; returns false if you want the dialog box to return any file name specified in the File name box, whether it is valid or not. The default value is true.
See the SaveFileDialog control topic for a code example using this method.
See Also getValidateNames