public void load(GeneralSubtrees generalSubtrees){
  List<GeneralSubtree> generalSubtreesList=generalSubtrees.getGeneralSubtrees();
  Collections.sort(generalSubtreesList,new GeneralSubtreeBaseComparator());
  data=new Object[generalSubtreesList.size()][3];
  int i=0;
  for (  GeneralSubtree generalSubtree : generalSubtreesList) {
    data[i][0]=generalSubtree;
    data[i][1]=generalSubtree;
    data[i][2]=generalSubtree;
    i++;
  }
  fireTableDataChanged();
}

public void load ( GeneralSubtrees generalSubtrees ) { List < GeneralSubtree > generalSubtreesList = generalSubtrees . getGeneralSubtrees ( ) ; Collections . sort ( generalSubtreesList , new GeneralSubtreeBaseComparator ( ) ) ; data = new Object [ generalSubtreesList . size ( ) ] [ 3 ] ; int i = 0 ; for ( GeneralSubtree generalSubtree : generalSubtreesList ) { data [ i ] [ 0 ] = generalSubtree ; data [ i ] [ 1 ] = generalSubtree ; data [ i ] [ 2 ] = generalSubtree ; i ++ ; } fireTableDataChanged ( ) ; }
load the generalsubtreestablemodel with general subtrees .
