import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;
public class Circle extends JFrame{
private int cx;
private int cy;
private int cr;
public Circle(int incx,int incy,int incr){
super("Circle");
setDefaultCloseOperation<wbr>(JFrame.EXIT_ON_CLOSE);</wbr>
setSize(300,300);
cx=incx;
cy=incy;
cr=incr;
CirclePane ccp=new CirclePane(cx,cy,cr);
Container pane=getContentPane();
pane.add(ccp);
setVisible(true);
}
public static void main(String[] args) {
new Circle(10,10,10);
}
}
class CirclePane extends JPanel{
private <wbr>int cx;</wbr>
private int cy;
private <wbr>int cr;</wbr>
CirclePane(int incx,int incy,int incr){
cx=incx;
cy=incy;
<wbr><wbr> cr=incr;</wbr></wbr>
}
public void paintComponent(Graphics comp){
Graphics2D comp2D=(Graphics2D)comp;
for(int i=0;i<8;i++){
<wbr><wbr> Ellipse2D.Float ee=new Ellipse2D.Float(cx+i*30,cy+i*30,cr+i*6,cr+i*6);</wbr></wbr>
comp2D.setColor(Color.red);
comp2D.fill(ee);
}
}
}