import java.awt.*; import javax.swing.*; // for JApplet public class SpiderWeb extends JApplet { public void paint (Graphics g) { //int height = (int)(g.getClipBounds().getHeight()); //int width = (int)(g.getClipBounds().getWidth()); int height = getHeight(); int width = getWidth(); // Draw circles in web for (int radius=1; 2*radius < Math.min(width, height); radius = radius + 25) { drawCircle(g, Color.black, width/2, height/2, radius); } // Draw lines in web that span the x-axis int numLines = 8; for (int i=0; i