void addCell(Component cell,boolean isHeader,CellConstraint constraint){
  if (isHeader) {
    headers.addElement(cell);
  }
  currentRow.addElement(cell);
  if (currentRow.size() > maxColumn) {
    maxColumn=currentRow.size();
  }
  if (constraint != null) {
    constraints.put(cell,constraint);
  }
}

void addCell ( Component cell , boolean isHeader , CellConstraint constraint ) { if ( isHeader ) { headers . addElement ( cell ) ; } currentRow . addElement ( cell ) ; if ( currentRow . size ( ) > maxColumn ) { maxColumn = currentRow . size ( ) ; } if ( constraint != null ) { constraints . put ( cell , constraint ) ; } }
adds the given component as a cell to the end of the current row of the table
