import java.awt.*; import Dic.*; import java.util.*; public class Animation { private Image img; private int width = 500; private int height = 500; private Vector ind; private Component par; public Animation(Component parent) { img = parent.createImage(width,height); if(img == null) { System.out.println("not create Img Animatopn"); } par = parent; } public void add(Index ind) { this.ind.add(ind); } public Image createImage() { if(img == null) { img = par.createImage(width,height); System.out.println("NULL Animation"); return null; } Graphics gra = img.getGraphics(); gra.setColor(new Color(10,250,100)); gra.drawArc(0,0,500,500,0,360); System.out.println(" Animation"); return img; } }