
import java.awt.*;
import javax.swing.*;

/**
 * Class Circles1 
 * 
 * @author smh
 * @version 1
 */
public class Circles1 extends JApplet
{
   
    public void init()
    {
        //JRootPane rootPane = this.getRootPane();    
        //rootPane.putClientProperty("defeatSystemEventQueueCheck", Boolean.TRUE);
    }


    public void start()
    {  }

 
    public void stop()
    {   }


    public void paint(Graphics g)
    {
        int height = getHeight();       // Component methods to get size of drawing surface
        int width = getWidth();
        
        int diameter = Math.min(height, width) / 10;     // ok, ok, a magic number for # of circles
        
        g.setColor(Color.blue);
        g.fillRect(0, 0, width , height);   // make background color blue
       
        g.setColor(Color.black);
        
        for (int x = width-diameter, y= 0; x >=0 && y <=height-diameter; x -= diameter, y += diameter)  // u gotta prob with , ?
        {
            g.fillOval(x, y, diameter, diameter);
        }
       
    }

 
    public void destroy()
    {   }

}