< Prev
Next >



ActionEvent and ActionListener




An event of type ActionEvent class is generated when a source such as -




Some methods of ActionEvent class


Method Description
public String getActionCommand() Returns the name over the button, item or menuitem that was clicked to trigger the ActionEvent.
public long getWhen() Returns the time when an ActionEvent was generated.





A class to listen and respond to ActionEvent should take two steps -


Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
C++ and Python

Ad2