I want to set custom color to a cell\'s background. I use HSSFWorkbook (can\'t use anything else).
HSSFWorkbook
HSSFPalette palette = aWorkBook.getCustom
Don't forget to call this.
style.setFillPattern(CellStyle.Align_Fill);
Parameter may differ according to your need. Maybe CellStyle.FINE_DOTS or so.