repaint(comp.getX(), comp.getY(), comp.getWidth(), comp.getHeight());
  protected void addImpl(Component comp, Object layerConstraint, int index)   {        	    int layer;    if (layerConstraint != null && layerConstraint instanceof Integer)      layer = ((Integer) layerConstraint).intValue();    else	  layer = getLayer(comp);	    int newIdx = insertIndexForLayer(layer, index);    setLayer(comp, layer);    super.addImpl(comp, layerConstraint, newIdx);  }     