
4.2 Executing an Applet 179
4.7.1 Multiple Choice Exercises
Questions 1,2,3,4
4.7.4 Identifying Errors in Code
Questions 26,27
4.7.5 Debugging Area
Question 28
4.7.8 Technical Writing
Question 38
Skill Practice
with these end-of-chapter questions
in the paint method is super.paint( g ). This statement calls the paint
method of our superclass, the JApplet class, so that it can perform its ini-
tialization of the applet window.
The paint method’s only parameter is a Graphics object. This object is auto-
matically generated by the browser or applet viewer, which sends it to the
paint method. The Graphics object represents the graphics context, which,
among other ...