Component.setSize

bool setSize(int width, int height)

Set the size of the component in terms of width and height.

Parameters

widthwidth to set for component
heightheight to set for component

Returns

true or false whether the size was set or not