Share via


Container.getPreferredSize

Class Overview | Class Members | This Package | All Packages

Syntax

public Dimension getPreferredSize()

Returns

an instance of Dimension that represents the preferred size of this container.

Description

Returns the preferred size of this container.

Overrides

getPreferredSize in class Component

See Also

getMinimumSize, getLayout, preferredLayoutSize, getPreferredSize