offScreenBufferGraphics.setColor(new Color(206,206,229)); offScreenBufferGraphics.fillRect(5,image.getHeight(this) - 15, ((image.getWidth(this) - 10) / steps) * progress,14); g.drawImage(offScreenBuffer,0,0,this);
offScreenBufferGraphics.setColor(new Color(204,204,255)); offScreenBufferGraphics.fillRect(inset, image.getHeight(this) - (height +1), ((image.getWidth(this) - (inset * 2)) / steps) * progress, height);
	public synchronized void paint(Graphics g) {		Dimension size = getSize();//      System.out.println(" here in paint ");		if(offScreenBuffer == null) {			offScreenBuffer = createImage(size.width,size.height);			offScreenBufferGraphics = offScreenBuffer.getGraphics();		}		offScreenBufferGraphics.setColor(Color.black);		offScreenBufferGraphics.drawRect(0,0,size.width - 1,size.height - 1);		offScreenBufferGraphics.drawImage(image,1,1,this);      offScreenBufferGraphics.draw3DRect(4,image.getHeight(this) - 16,                              image.getWidth(this) - 8,15,true);      offScreenBufferGraphics.setColor(new Color(206,206,229));      offScreenBufferGraphics.fillRect(5,image.getHeight(this) - 15,                              ((image.getWidth(this) - 10) / steps) * progress,14);		g.drawImage(offScreenBuffer,0,0,this);//      System.out.println(" here after paint ");	}