Dimension.setSize

Dimension.setSize

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void setSize( Dimension d )
Parameters
d
the new size for this Dimension object.
Description
Set the size of this Dimension object to the specified size. This method is included for completeness, to parallel the setSize method defined by Component.

See Also
getSize, setSize



Syntax 2
public void setSize( int width, int height )
Parameters
width
the new width for this Dimension object.
height
the new height for this Dimension object.
Description
Set the size of this Dimension object to the specified width and height. This method is included for completeness, to parallel the setSize method defined by Component.

See Also
getSize, setSize