Rectangle.setLocation

Rectangle.setLocation

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void setLocation( Point p )
Parameters
p
the new location for the point.
Description
Moves the rectangle to the specified location.

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

See Also
setLocation



Syntax 2
public void setLocation( int x, int y )
Parameters
x
the x coordinate of the new location.
y
the y coordinate of the new location.
Description
Moves the rectangle to the specified location.

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

See Also
setLocation