code: public void addCell(TableLayoutCell cell) {
          GridBagConstraints constraints = cell.getConstraints();
          constraints.insets = new Insets(cellpadding, cellpadding, cellpadding, cellpadding);
          add(cell.getComponent(), constraints);
      }
docs: Adds a new cell to the current grid
  @param cell the td component