Overview | Methods | Fields | This Package | All Packages
OverviewMethodsFieldsThis PackageAll Packages
Control.setLocation
Sets coordinates of the upper-left corner of the control relative to the upper-left corner of its container's client area.
Syntax
public final void setLocation( int x**, int** y )
public final void setLocation( Point
value )
Parameters
x
An integer that represents the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
y
An integer that represents the distance, in pixels, between the right edge of the control and the left edge of its container's client area.
value
A Point object that contains the coordinates of the upper-left corner of the control. The Point.x field holds the x-coordinate; the Point.y field holds the y-coordinate.
See Also getBounds , getLocation