if (!isLightweight())
if (isLightweight() || getParent() == null)
  public void update(Graphics g)  {    if (!isLightweight())      {        Rectangle clip = g.getClipBounds();        if (clip == null)          g.clearRect(0, 0, width, height);        else          g.clearRect(clip.x, clip.y, clip.width, clip.height);      }		paint(g);	}