Action Event In Java Example, The ActionEvent is generated when button is clicked or the item of a list is double clicked.