Rectangle bounds = a.getBounds();  if (bounds.width != getWidth() || bounds.height != getHeight()) setSize(bounds.width, bounds.height);  Rectangle inside = getInsideAllocation(a);  Rectangle copy = new Rectangle(inside); int count = getViewCount(); for (int i = 0; i < count; ++i) {      copy.setBounds(inside); paintChild(g, copy, i); }
  public void paint(Graphics g, Shape a)  {    // TODO: Implement me.  }