Previous Section  < Day Day Up >  Next Section

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.

    Previous Section  < Day Day Up >  Next Section