/** * Sets the size of this <code>Rectangle</code> to the specified width and height. * * <p>This method is included for completeness, to parallel the <code>setSize</code> method of * <code>Component</code>. * * @param width the new width for this <code>Rectangle</code> * @param height the new height for this <code>Rectangle</code> * @see java.awt.Component#setSize(int, int) * @see #getSize * @since JDK1.1 */ public void setSize(int width, int height) { resize(width, height); }