public void expandAll(){
  int row=0;
  while (row < getRowCount()) {
    expandRow(row);
    row++;
  }
}

public void expandAll ( ) { int row = 0 ; while ( row < getRowCount ( ) ) { expandRow ( row ) ; row ++ ; } }
expands the complete tree .
