preferredSize

Sets preferredSize and relays out; null restores the layout-computed preferred size.

Return

this modifier with the preferred size declared on it.

Parameters

size

the size the parent's layout manager is asked for, in pixels.

See also


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

Return

this modifier with the preferred size declared on it.

Parameters

width

the width the parent's layout manager is asked for, in pixels.

height

the height it is asked for.

See also