title: Setting custom font color for XSSFWorkbook in Apache POI
body: <p>I'm having a little trouble with setting a custom font color for an <code>XSSFWorkbook</code> from <code>Apache POI</code>. When I do:</p>
  
  <pre><code>    yellow = workbook.createCellStyle();
      Font whiteFont = workbook.createFont();
      whiteFont.setColor(new XSSFColor(new Color(255, 255, 255)).getIndexed());
      yellow.setFillForegroundColor(new XSSFColor(yellowRGB));
      yellow.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);
      yellow.setFont(whiteFont);
  </code></pre>
  
  <p>The font stays black, I'm not sure what I'm doing wrong though.</p>