GridLayout.minimumLayoutSize

GridLayout.minimumLayoutSize

Class Overview | Class Members | This Package | All Packages

Syntax
public Dimension minimumLayoutSize( Container parent )
Parameters
target
the container in which to do the layout.
Returns
the minimum dimensions needed to lay out the subcomponents of the specified container.
Description
Determines the minimum size of the container argument using this grid layout.

The minimum width of a grid layout is the largest minimum width of any of the widths in the container times the number of columns, plus the horizontal padding times the number of columns plus one, plus the left and right insets of the target container.

The minimum height of a grid layout is the largest minimum height of any of the widths in the container times the number of rows, plus the vertical padding times the number of rows plus one, plus the top and left insets of the target container.

See Also
preferredLayoutSize, doLayout