O'Reilly logo
  • Michael ss thinks this is interesting:

The Java runtime calls this actionPerformed method whenever the user clicks either of the two buttons in our application. The runtime passes an ActionEvent object to this method that contains the action details. We call its getSource method to check which button is clicked:

From

Cover of Java Programming

Note

bookmark