ButtonTest
Prerequisites
In this exercise, you will write an applet that creates and displays
a Button component.
Perform the following tasks:
Create an applet called ButtonTest and add a new instance of the Button class to the applet.
Define the method action so that when the user presses the button, the label is sent to System.out.
The task numbers above are linked to the
step-by-step help page. Also available
is a complete solution that meets
these requirements.
Related Exercises
|