//Upper right quadrant, Solid green fill
    Ellipse2D.Double circle2 = 
              new Ellipse2D.Double(
                0.0*ds,-2.0*ds,2.0*ds,2.0*ds);
    g2.setPaint(new Color(0,255,0));//green
    g2.fill(circle2);
    g2.draw(circle2);
     
    //Lower left quadrant, Solid blue fill
    Ellipse2D.Double circle3 = 
              new Ellipse2D.Double(
                -2.0*ds,0.0*ds,2.0*ds,2.0*ds);
    g2.setPaint(new Color(0,0,255));//blue
    g2.fill(circle3);
    g2.draw(circle3);
     
    //Lower right quadrant, Solid yellow fill
    Ellipse2D.Double circle4 = 
              new Ellipse2D.Double(
                 0.0*ds,0.0*ds,2.0*ds,2.0*ds);
    //yellow
    g2.setPaint(new Color(255,255,0));
    g2.fill(circle4);
    g2.draw(circle4); 

Figure 6