ActionListener Interface
Package: java.awt
ActionListener
is the interface that must be implemented by classes that will handle action events.
Method
Method |
Description |
|
This method is invoked when an action is performed on a control with which this class is registered as an action event listener. |
For an example of how to implement this interface to handle a button click, see JButton Class.
Get Java For Dummies Quick Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.