Share via


Component.getPreferredSize

Class Overview | Class Members | This Package | All Packages

Syntax

public Dimension getPreferredSize()

Returns

A dimension object indicating this component's preferred size.

Description

Gets the preferred size of this component.

See Also

getMinimumSize, LayoutManager