logo CodeStepByStep logo

circleLoops

Language/Type: Java graphics parameters DrawingPanel
Related Links:

Write a method named circleLoops that draws the following graphical figure onto a DrawingPanel. Your program's overall window size should be 250 x 250 pixels. The figure contains ten circles, filled in green and outlined in black, each of size 50x50 pixels. The circles begin with their top-left corner at (10, 5), and each one is shifted down/right by 20px relative to the last one. There is a black rectangle outline around the entire set of ten circles. The overall figure looks like this:

Java DrawingPanel close maximize minimize
expected output
 
Method: Write a Java method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.