title: XSSFCellStyle setFillForegroundColor and setFillBackgroundColor doesn't work
body: <p>I tried to use setFillForegroundColor and setFillBackgroundColor to change the cell color of an excel file. </p>
  
  <p>However, I failed and I really didn't know what the problem was. I've googled for many hours and still couldn't find the right way to set the color.</p>
  
  <p>The following is the code I write:</p>
  
  <pre><code>import java.awt.Color;
  import java.io.File;
  import java.io.FileOutputStream;
  
  import org.apache.poi.xssf.usermodel.XSSFCell;
  import org.apache.poi.xssf.usermodel.XSSFCellStyle;
  import org.apache.poi.xssf.usermodel.XSSFColor;
  import org.apache.poi.xssf.usermodel.XSSFRow;
  import org.apache.poi.xssf.usermodel.XSSFSheet;
  import org.apache.poi.xssf.usermodel.XSSFWorkbook;
  
  public class TestColor {
      public static void main(String[] args) {
          File f = new File("test.xlsx");
          XSSFWorkbook wb = new XSSFWorkbook();
          XSSFSheet sheet = wb.createSheet();
          XSSFRow row = sheet.createRow(0);
          XSSFCell cell = row.createCell(0);
          cell.setCellValue("no blue");
  
          // set the color of the cell
          XSSFCellStyle style = wb.createCellStyle();
          XSSFColor myColor = new XSSFColor(Color.BLUE);
          style.setFillForegroundColor(myColor);
          style.setFillBackgroundColor(myColor);
          cell.setCellStyle(style); // this command seems to fail
  
          try {
              FileOutputStream fos = new FileOutputStream(f);
              wb.write(fos);
              wb.close();
              fos.flush();
              fos.close();
          }catch(Exception e){
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>And this is the final result.</p>
  
  <p><a href="https://i.stack.imgur.com/koNok.png" rel="noreferrer"><img src="https://i.stack.imgur.com/koNok.png" alt="enter image description here"></a></p>
  
  <p>How can I set the cell's color to blue?</p>
  
  <p>I'm using poi-bin-3.12-20150511.zip from <a href="https://poi.apache.org/download.html" rel="noreferrer">https://poi.apache.org/download.html</a></p>