]> source.dussan.org Git - poi.git/commitdiff
Small correction
authorGlen Stampoultzis <glens@apache.org>
Tue, 12 Mar 2002 10:39:49 +0000 (10:39 +0000)
committerGlen Stampoultzis <glens@apache.org>
Tue, 12 Mar 2002 10:39:49 +0000 (10:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352206 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/hssf/usermodel/examples/FrillsAndFills.java

index 1bcfe0f008ecadd8a245aac3d50fbf47296b5d80..dc4e88c0c0e45c6c5c9dee364be694b5fe0ca25f 100644 (file)
@@ -78,7 +78,7 @@ public class FrillsAndFills
 
         // Aqua background
         HSSFCellStyle style = wb.createCellStyle();
-        style.setFillBackgroundColor(HSSFColor.AQUA.index);
+        style.setFillBackgroundColor(HSSFCellStyle.AQUA);
         style.setFillPattern(HSSFCellStyle.BIG_SPOTS);
         HSSFCell cell = row.createCell((short) 1);
         cell.setCellValue("X");
@@ -86,7 +86,7 @@ public class FrillsAndFills
 
         // Orange "foreground", foreground being the fill foreground not the font color.
         style = wb.createCellStyle();
-        style.setFillForegroundColor(HSSFColor.ORANGE.index);
+        style.setFillForegroundColor(HSSFCellStyle.ORANGE);
         style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
         cell = row.createCell((short) 2);
         cell.setCellValue("X");