1.10 Test-Driving a Java Application

In this section, you’ll run and interact with an existing Java Painter app, which you’ll build in a later chapter. The elements and functionality you’ll see are typical of what you’ll learn to program in this book. Using the Painter’s graphical user interface (GUI), you choose a drawing color and pen size, then drag the mouse to draw circles in the specified color and size. You also can undo each drawing operation or clear the entire drawing. [Note: We emphasize screen features like window titles and menus (e.g., the File menu) in a sans-serif font and emphasize nonscreen elements, such as file names and program code (e.g., ProgramName.java), in a fixed-width sans-serif font.]

The steps in this section show ...

Get Java How To Program, Late Objects, 11th 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.