Rectangle.setBounds

Overview | Methods | Fields | ThisPackage | All Packages

Rectangle.setBounds

Sets the size and location of this object.

Syntax

public void setBounds( int x, int y, int width, int height )

public void setBounds( RECT r )

public void setBounds( Rectangle r )

Parameters

x

The x-coordinate for the rectangle.

y

The y-coordinate for the rectangle.

width

The width of the rectangle.

height

The height of the rectangle.

r

The Win32 RECT structure or a Rectangle object that contains the values with which to initialize this rectangle.