Purpose of component’s requestFocus method

Explain the purpose of component’s requestFocus method.

- The purpose of the requestFocus() is to get the focus on the particular component and also on the window that contains the component.
- Requests that the component gets the input focus.
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...
What is paint method? What should we put in paint method?
What is paint method? - The AWT uses a Callback mechanism for painting which is the same for heavyweight and lightweight components...
Post your comment