Show with an example the usage of FileDialog object


Show with an example the usage of FileDialog object.

- class FileDialog extends from Dialog class.

- It is used to display a dialog window from which the user can select a file.

- It is a modal dialog.

- When the application calls the show method to display the dialog, the rest of the application is blocked until the user has chosen a file.

- It provides file dialog box functionality.

- It returns FileDialog object.
Purpose of component’s requestFocus method
Purposes of component’s requestFocus method - The purpose of the requestFocus() is to get the focus on the particular component and also on the window...
Method of the Component class
Method of the Component class - The methods are: setMaximumSize(Dimension maximumSize) : Sets the maximum size of this component to a constant value...
What interface is extended by AWT event listeners?
What interface is extended by AWT event listeners? - The java.util.EventListener interface is extended by all the AWT event listeners...
Post your comment