ActionListener in Java

ActionListener in Java
ActionListener in Java

ActionListener in Java:

ActionListener interface defines the method that an object must implement to listen for action events on AWT components.When as ActionEvent occurs ,an AWT component notifies it's registered ActionListener objects by invoking the actionPerformed() methods.

The structure of ActionListener interface is given as:


public abstract interface java.awt.event.ActionListener extends java.util.EventListener{
//method
public abstract void actionPerformed(ActionEvent e);
}
 
ActionListener in Java ActionListener in Java Reviewed by Animesh Chatterjee on January 07, 2019 Rating: 5

No comments:

Powered by Blogger.