ActionListener Interface

Package: java.awt

ActionListener is the interface that must be implemented by classes that will handle action events.

Method

Method

Description

void actionPerformed (ActionEvent e)

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.

CrossRef.eps For more information, see Event Handling.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset