FocusAdapter in Java

FocusAdapter in Java
FocusAdapter in Java

FocusAdapter in Java:

FocusAdapter class is an implementation of FocusListener interface containing empty bodies of each methods of the FocusListener interface.
If we do not wish to write every methods of FocusListener interface in our class,FocusAdapter class helps in that aspect.

The structure of FocusAdapter class is defined as:


public abstract class java.awt.event.FocusAdapter extends extends java.lang.Object 
                                                implements java.awt.event.FocusListener{
//constructor
public FocusAdapter();
//methods
public void focusGained(FocusEvent e);
public void focusLost(FocusEvent e);
}
 
FocusAdapter in Java FocusAdapter in Java Reviewed by Animesh Chatterjee on January 07, 2019 Rating: 5

No comments:

Powered by Blogger.