APIdia Launch Partner
Top Description Methods
java.awt.peer

public Interface FileDialogPeer

extends DialogPeer
Known Direct Implementers
sun.awt.X11.GtkFileDialogPeer, sun.awt.X11.XFileDialogPeer
Imports
java.awt.FileDialog, java.io.FilenameFilter

The peer interface for FileDialog. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Method Summary

Modifier and TypeMethod and Description
public void
setDirectory(String
the directory to set
dir
)

Sets the current directory for this file dialog.

public void
setFile(String
the file to set as selected file, or null for no selected file
file
)

Sets the selected file for this file dialog.

public void
setFilenameFilter(FilenameFilter
the filter to set
filter
)

Sets the filename filter for filtering the displayed files.

Inherited from java.awt.peer.DialogPeer:
blockWindowssetResizablesetTitle

Method Detail

setDirectoryback to summary
public void setDirectory(String dir)

Sets the current directory for this file dialog.

Parameters
dir:String

the directory to set

See Also
FileDialog#setDirectory(String)
setFileback to summary
public void setFile(String file)

Sets the selected file for this file dialog.

Parameters
file:String

the file to set as selected file, or null for no selected file

See Also
FileDialog#setFile(String)
setFilenameFilterback to summary
public void setFilenameFilter(FilenameFilter filter)

Sets the filename filter for filtering the displayed files.

Parameters
filter:FilenameFilter

the filter to set

See Also
FileDialog#setFilenameFilter(FilenameFilter)