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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.