ContainerAdapter in Java

0
37
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

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);
}
 
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

LEAVE A REPLY

Please enter your comment!
Please enter your name here