public void setDescriptionVisible ( boolean visible ) { if ( visible ) { add ( "Center" , split ) ; split . setTopComponent ( tableScroll ) ; split . setBottomComponent ( descriptionScrollPane ) ; // restore the divider location split . setDividerLocation ( split . getHeight ( ) - lastDescriptionHeight ) ; } else { // save the size of the description pane to restore it later lastDescriptionHeight = split . getHeight ( ) - split . getDividerLocation ( ) ; remove ( split ) ; add ( "Center" , tableScroll ) ; } descriptionButton . setSelected ( visible ) ; PropertySheetPanel . this . revalidate ( ) ; }
Toggles the visibility of the description panel .