ContainerAdapter in Java

ContainerAdapter in Java
ContainerAdapter in Java

ContainerAdapter in Java:

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

The structure of interface ContainerAdapter is given as:

public abstract class java.awt.event.ContainerAdapter extends java.lang.Object
                                                      implements java.awt.event.ContainerListener {
//constructor
public ContainerAdapter();
//methods
public void componentAdded(ContainerEvent e);
public void componentRemoved(ContainerEvent e);
}
 
ContainerAdapter in Java ContainerAdapter in Java Reviewed by Animesh Chatterjee on January 07, 2019 Rating: 5

No comments:

Powered by Blogger.