Rectangle copy = new Rectangle(inside);
int x = alloc.x + getLeftInset(); int y = alloc.y + getTopInset();  Rectangle clip = g.getClipBounds(); Rectangle tmp = new Rectangle();
  public void paint(Graphics g, Shape a)  {    Rectangle inside = getInsideAllocation(a);    // TODO: Used for debugging.    //g.drawRect(inside.x, inside.y, inside.width, inside.height);    Rectangle copy = new Rectangle(inside);    int count = getViewCount();    for (int i = 0; i < count; ++i)      {        copy.setBounds(inside);        childAllocation(i, copy);        if (!copy.isEmpty()            && g.hitClip(copy.x, copy.y, copy.width, copy.height))        paintChild(g, copy, i);      }  }