code: public Cell createTitleCell(String str, double width) {
  
          int cellCnt = this.getCellCnt();
  
          Cell cell = this.getLastRow().createCell(cellCnt);
          cell.setCellValue(str);
          cell.setCellType(CellType.STRING);
          cell.setCellStyle(this.style.getStringCs());
  
          sheet.setColumnWidth(cellCnt, (int) (sheet.getColumnWidth(cellCnt) * width));
  
          return cell;
      }
docs: Create title cell cell.
  
  @param str   the str
  @param width the width
  @return the cell