This topic contains a solution. Click here to go to the answer

Author Question: If you want to draw a red circle inside of a green square in an applet where the paint method is ... (Read 26 times)

tuffie

  • Hero Member
  • *****
  • Posts: 534
If you want to draw a red circle inside of a green square in an applet where the paint method is passed a Graphics object called page, which of the following sets of commands might you use?
◦ page.setColor(Color.green); 
page.fillRect(50, 50, 100, 100);
page.setColor(Color.red);
page.fillOval(60, 60, 80, 80);
◦ page.setColor(Color.red);
page.fillOval(60, 60, 80, 80);
page.setColor(Color.green);
page.fillRect(50, 50, 100, 100);
◦ page.setColor(Color.green);
page.fillRect(60, 60, 80, 80);
page.setColor(Color.red);
page.fillOval(50, 50, 100, 100);
◦ page.setColor(Color.red);
page.fillOval(50, 50, 100, 100);
page.setColor(Color.green); 
page.fillRect(60, 60, 80, 80);
◦ any of these would accomplish this


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by tuffie on Aug 30, 2020

Jordin Calloway

  • Sr. Member
  • ****
  • Posts: 334
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 56% of students answer this correctly




tuffie

  • Member
  • Posts: 534
Reply 2 on: Aug 30, 2020
Excellent


epscape

  • Member
  • Posts: 335
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

Studies show that systolic blood pressure can be significantly lowered by taking statins. In fact, the higher the patient's baseline blood pressure, the greater the effect of statins on his or her blood pressure.

Did you know?

The cure for trichomoniasis is easy as long as the patient does not drink alcoholic beverages for 24 hours. Just a single dose of medication is needed to rid the body of the disease. However, without proper precautions, an individual may contract the disease repeatedly. In fact, most people develop trichomoniasis again within three months of their last treatment.

Did you know?

If you use artificial sweeteners, such as cyclamates, your eyes may be more sensitive to light. Other factors that will make your eyes more sensitive to light include use of antibiotics, oral contraceptives, hypertension medications, diuretics, and antidiabetic medications.

Did you know?

Chronic marijuana use can damage the white blood cells and reduce the immune system's ability to respond to disease by as much as 40%. Without a strong immune system, the body is vulnerable to all kinds of degenerative and infectious diseases.

Did you know?

There are more bacteria in your mouth than there are people in the world.

For a complete list of videos, visit our video library