Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

Control.setBounds

Sets the bounding rectangle for the control.

Syntax

public final void setBounds( Rectangle value )

public final void setBounds( int

x**, int** y**, int** width**, int** height )

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 Rectangle object that represents the bounding rectangle for the control.

width

An integer that represents the width, in pixels, of this control.

height

An integer that represents the height, in pixels, of this control.

See Also   getBounds