preferredSize
Sets preferredSize and relays out; null restores the layout-computed preferred size.
Parameters
size
the size the parent's layout manager is asked for.
See also
Sets preferredSize to Dimension(width, height) and relays out.
Parameters
width
the width the parent's layout manager is asked for.
height
the height it is asked for.