Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface FileDialogPeer

Methods

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);
}


Methods


setDirectory

public abstract void setDirectory(String  dir) 

Sets the directory of the file dialog window to be the specified directory.

ParameterDescription
dir the specific directory


setFile

public abstract void setFile(String  file) 

Sets the selected file for the file dialog window to be the specified file.

ParameterDescription
file the file being set


setFilenameFilter

public abstract void
setFilenameFilter(FilenameFilter  filter) 

Sets the filename filter for this file dialog window to the specified filter

ParameterDescription
filter the specified filter



Top© 1996 Sun Microsystems, Inc. All rights reserved.