There is only one action event that has a registered
listener--when the user clicks on the only button.
So the action listener does not need
to check which component
caused an event.
Action events from the JTextField
s have
no registered listener and are ignored.
The user clicks the "Do It!" button
after entering numeric text in the top
two JTextField
s.
This generates an ActionEvent
which is passed to the registered listener for the button,
in this case the same object as contains the button.
That object implements ActionListener
which
means that it has an actionPerformed()
method.
Fill in the blanks. Click the buttons.