if (this.width == width && this.height == height) return; invalidate(); this.width = width; this.height = height; if (peer != null) peer.setBounds(x, y, width, height);
resize (width, height);
  public void setSize(int width, int height)  {    if (this.width == width && this.height == height)      return;    invalidate();    this.width = width;    this.height = height;    if (peer != null)      peer.setBounds(x, y, width, height);  }