title: Cell Comments created with Apache POI have transparent background
body: <p>I am using Apache POI 3.9 to create cell comments.</p>
  
  <p>I have been using the code for HSSF sheets suggested by Erik Pragt in <a href="https://stackoverflow.com/questions/2281221/creating-cell-comments-using-hssfclientanchor-in-apache-poi/6572996#6572996">creating cell comments using HSSFClientAnchor in apache poi</a> for a few years, and it works well.</p>
  
  <p>However now I have a need to add cell comments to XSSF sheets.</p>
  
  <p>I have tried the code suggested by lastnitescurry in the same page, which works nicely, but it creates for me comments with a transparent background.</p>
  
  <p>The code is reproduced below.</p>
  
  <pre><code>protected void setCellComment(Cell cell, String message) {
      Drawing drawing = cell.getSheet().createDrawingPatriarch();
      CreationHelper factory = cell.getSheet().getWorkbook()
              .getCreationHelper();
      // When the comment box is visible, have it show in a 1x3 space
      ClientAnchor anchor = factory.createClientAnchor();
      anchor.setCol1(cell.getColumnIndex());
      anchor.setCol2(cell.getColumnIndex() + 1);
      anchor.setRow1(cell.getRowIndex());
      anchor.setRow2(cell.getRowIndex() + 1);
      anchor.setDx1(100);
      anchor.setDx2(100);
      anchor.setDy1(100);
      anchor.setDy2(100);
  
      // Create the comment and set the text+author
      Comment comment = drawing.createCellComment(anchor);
      RichTextString str = factory.createRichTextString(message);
      comment.setString(str);
      comment.setAuthor("Apache POI");
      // Assign the comment to the cell
      cell.setCellComment(comment);
  }
  </code></pre>
  
  <p>How can I change the background to a yellow background?</p>
  
  <p>NOTE: If one edits the apache-poi created comment in Excel, then it will appear with a yellow background temporarily. However if one tries to format this comment to change the background from within Excel, then one can't. (The Color and Lines menu does not appear) </p>