Question: Write a program that draws the patterns shown in Figure 3G.35 onto a DrawingPanel. The DrawingPanel s size is 400 400 pixels and its

Write a program that draws the patterns shown in Figure 3G.35 onto a DrawingPanel.

Drawing Panel

The DrawingPanel ’s size is 400 × 400 pixels and its background color is cyan. It contains four figures of concentric yellow circles with black outlines, all surrounded by a green rectangle with a black outline. The four figures on your DrawingPanel should have the properties shown in Table 3G.7.

Break down your program into methods for drawing one subfigure as well as larger grids of subfigures, such as the 5 × 5 grid at (10, 120).

Drawing Panel

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

public class Circles public static void mainString args DrawingPanel panel new DrawingPanel400 425 panelsetBackgroundColorCYAN Graphics g panelgetGraphics drawFigureg 0 0 1 100 10 drawFigureg 18 175 6 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!