created: 6/26/99 (using AWT); revised: 01/26/00, 01/09/02 (using Swing), 07/19/06
We have been doing event-driven programing. The three parts of a GUI application are:
Soon we will get to the third step,
and you will actually write a full GUI application!
But not yet.
This chapter continues the discussion on how to add button components
to a frame, and how the
actionPerformed()with several buttons.
What is the name of the method that receives
ActionEvents when a button is clicked?