private void repaintChildren(final Rectangle r){
  final Rectangle content=getContentSize();
  for (  final LWComponentPeer<?,?> child : getChildren()) {
    final Rectangle childBounds=child.getBounds();
    Rectangle toPaint=r.intersection(childBounds);
    toPaint=toPaint.intersection(content);
    toPaint.translate(-childBounds.x,-childBounds.y);
    child.repaintPeer(toPaint);
  }
}

private void repaintChildren ( final Rectangle r ) { final Rectangle content = getContentSize ( ) ; for ( final LWComponentPeer < ? , ? > child : getChildren ( ) ) { final Rectangle childBounds = child . getBounds ( ) ; Rectangle toPaint = r . intersection ( childBounds ) ; toPaint = toPaint . intersection ( content ) ; toPaint . translate ( - childBounds . x , - childBounds . y ) ; child . repaintPeer ( toPaint ) ; } }
paints all the child peers in the straight z - order , so the bottom - most ones are painted first .
