Explore BrainMass

Explore BrainMass

    Java Applets - Class Graphics contains method drawOval

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Class Graphics contains method drawOval, which takes as arguments the same four arguments as method drawRect. The arguments for method drawOval specify the "bounding box for the oval - the sides of the bounding box are the boundaries of the oval.

    Write a Java applet that draws an oval and a rectangle with the same four arguments. The oval will touch the rectangle at the center of each side.

    © BrainMass Inc. brainmass.com October 9, 2019, 7:49 pm ad1c9bdddf

    Solution Summary

    A Java applet using class graphics is implemented. The response was rated '5/5' by the student who originally posted the question.