ActionListener in Java

0
134
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

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);
}
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
READ  All About Class StringTokenizer in Java

LEAVE A REPLY

Please enter your comment!
Please enter your name here