MyCanvas() {
arc1=new Arc2D.Double(60,60,100,100,0,20,Arc2D.PIE);
arc2=new Arc2D.Double(60,60,100,100,72,20,Arc2D.PIE);
arc3=new Arc2D.Double(60,60,100,100,144,20,Arc2D.PIE);
arc4=new Arc2D.Double(60,60,100,100,216,20,Arc2D.PIE);
arc5=new Arc2D.Double(60,60,100,100,288,20,Arc2D.PIE);
line=new Line2D.Double(110,110,110,190);
ellipse=new Ellipse2D.Double(100,100,20,20);
bs=new BasicStroke(8f,BasicStroke.CAP_SQUARE,BasicStroke.JOIN_ROUND);
trans=new AffineTransform();
timer = new javax.swing.Timer(10,this);
timer.start();
}
public void actionPerformed(ActionEvent e) {
repaint();
}
public void paint(Graphics g) {
g.clearRect(0,0,this.getBounds().width,this.getBounds().height);
Graphics2D g_2d=(Graphics2D)g;
g_2d.setStrok