public class FileDialog extends Dialog
FileDialog
class displays a dialog window
from which the user can select a file.
Since it is a modal dialog, when the application calls
its show
method to display the dialog,
it blocks the rest of the application until the user has
chosen a file.
Window.show()
,
Serialized FormDialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
LOAD
This constant value indicates that the purpose of the file
dialog window is to locate a file from which to read.
|
static int |
SAVE
This constant value indicates that the purpose of the file
dialog window is to locate a file to which to write.
|
DEFAULT_MODALITY_TYPE
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
FileDialog(Dialog parent)
Creates a file dialog for loading a file.
|
FileDialog(Dialog parent,
String title)
Creates a file dialog window with the specified title for loading
a file.
|
|