Objectives In this chapter, we present a case study in developing graphical user
interfaces (GUI) using the Java Foundation Classes (JFC). We also demonstrate
the iterative development process by designing and implementing a graphical
drawing pad in successive increments. Two new design patterns, Factory
Method and State, are introduced.
Contents 7.1 Iterative Development
7.2 Iteration 1: A Simple Scribbling Pad
7.3 Iteration 2: The Control Panel
7.4 Iteration 3: The Drawing Tools
7.5 Iteration 4: More Tools
7.5.1 Handling The Keyboard Input
7.5.2 Drawing Filled Shapes