Exercising the Rubberband Classes

Figure 23-2 shows the DrawingPanel class in action. As usual, feel free to run the test application by invoking appletviewer on the RubberbandTest.html file provided on the CD. Doing so should help you to better understand the discussion of the application.

Figure 23-2. DrawingPanel Test Application

To see exactly how RubberbandTest is laid out in three 3 dimensions, look at Figure 23-3.

Figure 23-3. RubberbandTest Layout Diagram

RubberbandTest is listed in Example 23-7.

Example 23-7. RubberbandTest Application

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.