return this;
}
private void addAllCommentsToOneCell(Drawing drawing, CreationHelper factory, Cell c, String... texts) {
ClientAnchor anchor = factory.createClientAnchor();
// System.out.println("a"+c.toString());
// System.out.println("a"+c.getColumnIndex());
// System.out.println("a"+c.getRowIndex());
// System.out.println("_____________________"+c);
int commentLines = 0;
for (int i = 0; i < texts.length; ++i) {
commentLines += 1;
commentLines += texts[i].length() - texts[i].replace("\n","").length();
}
anchor.setCol1(c.getColumnIndex());
anchor.setCol2(c.getColumnIndex() + 7);
anchor.setRow1(c.getRowIndex());
anchor.setRow2(c.getRowIndex() + commentLines);
// Create the comment and set the text+author
Comment comment = drawing.createCellComment(anchor);
StringBuilder sb = new StringBuilder();
String separator = "";