ComponentAdapter in Java

0
147
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

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);
}
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