Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The file dialog window peer interface specifies the methods that all implementations of Abstract Window Toolkit file dialog windows must define.
public interface java.awt.peer.FileDialogPeer extends java.awt.peer.DialogPeer { // Methods public abstract void setDirectory(String dir); public abstract void setFile(String file); public abstract void setFilenameFilter(FilenameFilter filter); }
public abstract void setDirectory(String dir)Sets the directory of the file dialog window to be the specified directory.
Parameter Description dir the specific directory
public abstract void setFile(String file)Sets the selected file for the file dialog window to be the specified file.
Parameter Description file the file being set
public abstract void setFilenameFilter(FilenameFilter filter)Sets the filename filter for this file dialog window to the specified filter
Parameter Description filter the specified filter