diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index 530b857183..73616f5599 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java @@ -806,12 +806,12 @@ public class HSSFCellStyle * For example: *
* cs.setFillPattern(HSSFCellStyle.FINE_DOTS ); - * cs.setFillBackgroundColor(HSSFCellStyle.RED); + * cs.setFillBackgroundColor(new HSSFColor.RED().getIndex()); ** or, for the special case of SOLID_FILL: *
- * cs.setFillPattern(HSSFCellStyle.SOLID_FILL ); - * cs.setFillForgroundColor(HSSFSeCellStyle.RED); + * cs.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND ); + * cs.setFillForegroundColor(new HSSFColor.RED().getIndex()); ** It is necessary to set the fill style in order * for the color to be shown in the cell.