Share via


Component.setSize

Class Overview | Class Members | This Package | All Packages

Syntax 1

public void setSize( int width**, int** height )

Parameters
  • width
    The new width of this component in pixels.
  • height
    The new height of this component in pixels.
Description

Resizes this component so that it has width width and height.

See Also

getSize, setBounds

Syntax 2

public void setSize( Dimension d )

Parameters
  • d
    The dimension specifying the new size of this component.
Description

Resizes this component so that it has width d.width and height d.height.

See Also

setSize, setBounds