title: How to get cell's background color using apache poi?
body: <p>How do we get <code>background color</code> of a <code>XSSFCell</code>. I tried using <code>XSSFCellStyle</code> but no luck.</p>
  
  <pre><code>FileInputStream fis = new FileInputStream(fileName);
  XSSFWorkbook book = new XSSFWorkbook(fis);
  XSSFSheet sheet = book.getSheetAt(0);
  XSSFRow row = sheet.getRow(0);
  
  System.out.println(row.getCell(0).getCellStyle().getFillForegroundColor());
  </code></pre>
  
  <p>Using these steps I am not able to get background color representation in <code>Short</code> type.</p>