In its current form, the program displays:
What you are to add is:
You are also to convert the program into an applet, to be executed via the command:
appletviewer PolyDrawApplet.html(You will be given the HTML file PolyDrawApplet.html.)
The value displayed in the label at the top of the panel should reflect the total number of "completed" polygons -- that is, it should change when (1) the user clicks the right mouse button to "finish" a polygon, and (2) when the user presses the clear button to reset everything.