OlympicRings - { final int DIAMETER = 50; setBackground...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // OlympicRings.java Author: Lewis and Loftus // // Solution to Programming Project 2.20 //******************************************************************** / import javax.swing.JApplet; import java.awt.*; i public class OlympicRings extends JApplet { //----------------------------------------------------------------- // Draws the olympic logo. //----------------------------------------------------------------- public void paint (Graphics page)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { final int DIAMETER = 50; setBackground (Color.lightGray); page.setColor (Color.blue); page.drawOval (30, 40, DIAMETER, DIAMETER); page.setColor (Color.yellow); page.drawOval (60, 70, DIAMETER, DIAMETER); page.setColor (Color.black); page.drawOval (90, 40, DIAMETER, DIAMETER); page.setColor (Color.green); page.drawOval (120, 70, DIAMETER, DIAMETER); page.setColor (Color.red); page.drawOval (150, 40, DIAMETER, DIAMETER); } }...
View Full Document

Ask a homework question - tutors are online