maximumSize

Sets maximumSize and relays out; null restores the layout-computed maximum size.

Return

this modifier with the maximum size declared on it.

Parameters

size

the ceiling a layout manager is asked to respect once the container has more room than the preferred size, in pixels.

See also


Sets maximumSize to Dimension(width, height) and relays out.

Return

this modifier with the maximum size declared on it.

Parameters

width

the largest width a stretching layout manager is asked to grow to, in pixels.

height

the largest height it is asked to grow to.

See also