All About INTERFACE FileDialogPeer in AWT in Java

The FileDialogPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Dialog window.
The structure of interface DialogPeer is given as:

public interface java.awt.peer.FileDialogPeer extends java.awt.peer.DialogPeer{
//Methods
public abstract void setDirectory(String dir);
//sets the directory of the file dialog window to be the specified directory.
public abstract void setFileNameFilter(FileNameFilter filter);
//sets the filename filter for this file dialog windows to the specified filter.
}
 
All About INTERFACE FileDialogPeer in AWT in Java All About INTERFACE FileDialogPeer in AWT in Java Reviewed by Animesh Chatterjee on November 02, 2018 Rating: 5

No comments:

Powered by Blogger.