Component.setSize
Class Overview | Class Members |
This Package |
All Packages
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
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