TextArea.getPreferredSize

TextArea.getPreferredSize

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Dimension getPreferredSize( int rows, int columns )
Parameters
rows
the number of rows.
cols
the number of columns.
Returns
the preferred dimensions required to display the text area with the specified number of rows and columns.
Description
Determines the preferred size of a text area with the specified number of rows and columns.

See Also
getPreferredSize



Syntax 2
public Dimension getPreferredSize()
Returns
the preferred dimensions needed for this text area.
Description
Determines the preferred size of this text area.

Overrides
getPreferredSize in class Component
See Also
getPreferredSize