question: public Dimension minimumLayoutSize ( Container target ) { synchronized ( target . getTreeLock ( ) ) { Dimension dim = new Dimension ( 0 , 0 ) ; if ( ( chart != null ) && chart . isVisible ( ) ) { Dimension d = chart . getMinimumSize ( ) ; dim . width = d . width ; dim . height = d . height ; } if ( ( xLabel != null ) && xLabel . isVisible ( ) ) { Dimension d = xLabel . getMinimumSize ( ) ; dim . width = Math . max ( d . width , dim . width ) ; dim . height += d . height + vgap ; } if ( ( yLabel != null ) && yLabel . isVisible ( ) ) { Dimension d = yLabel . getMinimumSize ( ) ; dim . width += d . width + hgap ; dim . height = Math . max ( d . height , dim . height ) ; } if ( ( title != null ) && title . isVisible ( ) ) { Dimension d = title . getMinimumSize ( ) ; dim . width = Math . max ( d . width , dim . width ) ; dim . height += d . height + vgap ; } Insets insets = target . getInsets ( ) ; dim . width += insets . left + insets . right ; dim . height += insets . top + insets . bottom ; return dim ; } }
target:  Returns the minimum dimensions needed to layout the components contained in the specified target container.