FileDialog.FileDialog

FileDialog.FileDialog

Class Overview | Class Members | This Package | All Packages

Syntax 1
public FileDialog( Frame parent )
Parameters
parent
the owner of the dialog
Description
Creates a file dialog for loading a file. The title of the file dialog is initially empty.



Syntax 2
public FileDialog( Frame parent, String title )
Parameters
parent
the owner of the dialog.
title
the title of the dialog.
Description
Creates a file dialog window with the specified title for loading a file. The files shown are those in the current directory.



Syntax 3
public FileDialog( Frame parent, String title, int mode )
Parameters
parent
the owner of the dialog.
title
the title of the dialog.
mode
the mode of the dialog.
Description
Creates a file dialog window with the specified title for loading or saving a file.

If the value of mode is LOAD, then the file dialog is finding a file to read. If the value of mode is SAVE, the file dialog is finding a place to write a file.

See Also
LOAD, SAVE