public void cropTo ( int fromItem , int toItem ) { fromItem = Math . max ( fromItem , 0 ) ; toItem = Math . min ( toItem , cells . size ( ) ) ; cells . forget ( 0 , fromItem ) ; cells . forget ( toItem , cells . size ( ) ) ; }
Updates the list of cells to display