CSC 112
Ileana Streinu
18. Array of Buttons
- Modify the applet so that it simultaneously prints the digit on the applet and on the Java console,
when a button is clicked.
- Modify the applet so that when the ith button is
clicked, the corresponding English name of the digit is printed
on the applet.
- Design an applet drawing several concentric circles of different sizes. More precisely, your applet will have no buttons
or any other action, it will just have graphics in it (i.e. just an init and a paint method). It will allocate an array of, say,
10 integers, each one representing the radius of a circle. The paint method will just draw all the circles, with the same center but
of different radii given by the elements of the array.