|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.awt.Component
![]()
![]()
![]()
java.awt.Container
![]()
![]()
![]()
java.awt.Window
![]()
![]()
![]()
java.awt.Dialog
![]()
![]()
![]()
java.awt.FileDialog
, MenuContainer
, Serializable
, Accessible

public class FileDialog

The 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 Form| Nested Class Summary |
|---|
Nested classes/interfaces inherited from class java.awt.Dialog ![]() |
|---|
Dialog.AccessibleAWTDialog |
Nested classes/interfaces inherited from class java.awt.Window ![]() |
|---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container ![]() |
|---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component ![]() |
|---|
Component.AccessibleAWTComponent |
| Field Summary | |
|---|---|
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. |
Fields inherited from class java.awt.Component ![]() |
|---|
BOTTOM_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver ![]() |
|---|
ABORT |
| Constructor Summary | |
|---|---|
FileDialog
Creates a file dialog for loading a file. |
|
FileDialog
Creates a file dialog window with the specified title for loading a file. |
|
FileDialog
Creates a file dialog window with the specified title for loading or saving a file. |
|
FileDialog
Creates a file dialog for loading a file. |
|
FileDialog
Creates a file dialog window with the specified title for loading a file. |
|
FileDialog
Creates a file dialog window with the specified title for loading or saving a file. |
|
| Method Summary | |
|---|---|
void |
addNotify
Creates the file dialog's peer. |
String |
getDirectory
Gets the directory of this file dialog. |
String |
getFile
Gets the selected file of this file dialog. |
FilenameFilter |
getFilenameFilter
Determines this file dialog's filename filter. |
int |
getMode
Indicates whether this file dialog box is for loading from a file or for saving to a file. |
protected String |
paramString
Returns a string representing the state of this FileDialog
window. |
void |
setDirectory
Sets the directory of this file dialog window to be the specified directory. |
void |
setFile
Sets the selected file for this file dialog window to be the specified file. |
void |
setFilenameFilter
Sets the filename filter for this file dialog window to the specified filter. |
void |
setMode
Sets the mode of the file dialog. |
Methods inherited from class java.awt.Dialog ![]() |
|---|
getAccessibleContext |
Methods inherited from class java.awt.Container ![]() |
|---|
add |