Activities

To draw upon your vast storehouse of graphical skills, do the following activities:

  • Create a version of the PieApplet class that takes color values and pie slice values as parameters instead of including them in the source code of the applet.

  • Create a version of Sign that changes in shape to fit the available space in the panel (just like the PiePanel component does).

To see Java programs that implement these activities, visit the book's website at http://www.java24hours.com.

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH 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.