Rectangle.setSize

Rectangle.setSize

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void setSize( Dimension d )
Parameters
d
the new size for the Dimension object
Description
Sets the size of this rectangle to match the specified dimension.

This method is included for completeness, to parallel the setSize method of Component.

See Also
setSize



Syntax 2
public void setSize( int width, int height )
Parameters
width
the new width for this rectangle object.
height
the new height for this rectangle object.
Description
Sets the size of this rectangle to the specified width and height.

This method is included for completeness, to parallel the setSize method of Component.

See Also
setSize