class is a subclass of
used for choosing a file to open or save.
This class uses the host platform's standard Open and Save file dialog boxes.
choosing Files with fileDialog boxes
You will not add components to a file dialog box or worry about how to handle user interaction.
You will just retrieve the result, which will be the name and directory of a file.
Since an applet can't rely on having access to the file system, file dialog boxes are primarily useful in applications.
There are four steps to using a