< 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

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page

Notifications



COMING SOON
-
PYTHON