/** * Assign a comment to this cell. If the supplied comment is null, the comment for this cell will * be removed. * * @param comment the XSSFComment associated with this cell */ public void setCellComment(Comment comment) { if (comment == null) { removeCellComment(); return; } comment.setRow(getRowIndex()); comment.setColumn(getColumnIndex()); }