5.11 (Optional) GUI and Graphics Case Study: Drawing Rectangles and Ovals
This section demonstrates drawing rectangles and ovals, using the Graphics
methods drawRect and drawOval, respectively. These methods are demonstrated in Fig. 5.27.
Get Java™ How To Program (Early Objects), Tenth 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.