code: @ Override
  	public void paint(Graphics g) {
  		super.paint(g);
  		boolean change = indeterminate;
  		Graphics2D g2 = (Graphics2D) g.create();
  		updateComponentMiddelpoint(g2);
  
  		for (int animationPointID = animationPointCount - 1; animationPointID >= 0; animationPointID--) {
  			if (indeterminate) {
  				indeterminateAnimation(g2, animationPointID);
  			} else {
  				progressAnimation(g2, animationPoint[animationPointID], animationPointID);
  				if (!(animationPoint[animationPointID] == 0 || animationPoint[animationPointID] == 255)) {
  					change = true;
  				}
  			}
              Thread.yield();
  		}
  
  		if (!change) {
  			synchronized (animationTimer) {
  				animationTimer.stop();
  				animationTimer.notifyAll();
  			}
  		}
  		//Rectangle rec = g2.getClipBounds();
  		//((GroupLayout) this.getLayout()).
  		//stateTextLabel.setPreferredSize(new Dimension((int) stateTextLabel.getWidth(), ));
  		//debugPaint(g2);
  		g2.dispose();
  	}
docs: GEN-LAST:event_formComponentResized