Apache poi excel评论包装文本

我怎样才能确保评论持有人将足够大,以显示评论? 我已经search了一些属性像包装文本,但我没有运气。

if(drawingPatriarch == null) { drawingPatriarch = sh.createDrawingPatriarch(); } HSSFClientAnchor anchor = new HSSFClientAnchor(); anchor.setCol1(cell.getColumnIndex()); anchor.setCol2(cell.getColumnIndex()+1); anchor.setRow1(row.getRowNum()); anchor.setRow2(row.getRowNum()+3); Comment cellComment = drawingPatriarch.createCellComment(anchor); cellComment.setString(new HSSFRichTextString(comment)); if(author != null) cellComment.setAuthor(author); cell.setCellComment(cellComment); 

http://poi.apache.org/spreadsheet/quick-guide.html

 CellStyle wrapText=workbookWrite.createCellStyle(); wrapText.setWrapText(true); cellComment.setCellStyle(wrapText);