ComponentAdapter in Java

ComponentAdapter in Java
ComponentAdapter in Java

ComponentAdapter in Java:

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

The structure of interface ComponentAdapter is given as:


public abstract class java.awt.event.ComponentAdapter  extends java.lang.Object
implements java.awt.event.ContainerListener
implements java.util.EventListener{
//constructor
public ComponentAdapter();
//methods
public void componentHidden(ComponentEvent e);
public void componentMoved(ComponentEvent e);
public void componentResized(ComponentEvent e);
public void componentShown(ComponentEvent e);
}
 
ComponentAdapter in Java ComponentAdapter in Java Reviewed by Animesh Chatterjee on January 07, 2019 Rating: 5

No comments:

Powered by Blogger.