The parameter for
is a reference to an
When the button is clicked,
the method is called with a new action object parameter.
we've not used the
You will see this shortly.
Here is the picture of what is happening:
Usually the registered
ActionListener is the same object
as the frame that holds the button.
Usually this is an object
that derives from the Swing
(In other words, you define a class based
The class contains a button
and implements the