

Giving students several options for accomplishing the same task often confuses them to the point that they learn none of the strategies well. To reach the widest possible audience, the Java Task Force chose to support several of the most popular styles and allow individual instructors to make their own choices.Īlthough the decision to support multiple styles seems appropriate in terms of the overall package design, it carries with it some pedagogical risks. Some instructors will strongly prefer one style, while others will argue equally strongly for a different approach. This chapter introduces several strategies for implementing each of those capabilities.Īs with almost every programming task, however, there are many different ways to animate a program or to get it to respond to mouse events.

For students to get excited about graphics, it is essential to add animation so that the pictures evolve as the program runs and interactivity to give the user control over the program. Running those programs causes a picture to appear in its final form. Even though the programs in Chapter 2 offer a reasonably complete survey to the classes in the acm.graphics package, they do so using examples that are entirely static.
