question: private void layoutPanel ( ) { setBorder ( BorderFactory . createEmptyBorder ( 5 , 5 , 5 , 5 ) ) ; setLayout ( new BorderLayout ( ) ) ; add ( new LabelledItem ( "Distribution: " , cbDistribution ) , BorderLayout . NORTH ) ; add ( cardPanel , BorderLayout . CENTER ) ; cbItemListener . itemStateChanged ( new ItemEvent ( cbDistribution , ItemEvent . SELECTED , cardPanel , ItemEvent . ITEM_STATE_CHANGED ) ) ; repaint ( ) ; revalidate ( ) ; }
target:  Lays out the panel...