The labels do not need listeners because they generate no actions. The bottom text field does not need a listener because it will have its text set by the program (this is not an event.) Here is the application. Decide what should go in place of the ten buttons:
In this program, the labels and text fields are constructed in the declartions
outside of the constructor for the
(In previous programs, componenents were constructed inside the frame's constructor.)
Both styles work fine.
Decide what should go in each blank. Fill in the blanks by clicking on a button.