List.getPreferredSize

List.getPreferredSize

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Dimension getPreferredSize( int rows )
Parameters
rows
number of rows in the list.
Returns
the preferred dimensions for displaying this scrolling list.
Description
Gets the preferred dimensions for a list with the specified number of rows.

See Also
getPreferredSize



Syntax 2
public Dimension getPreferredSize()
Returns
the preferred dimensions for displaying this scrolling list.
Description
Gets the preferred size of this scrolling list.

Overrides
getPreferredSize in class Component
See Also
getPreferredSize