poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fannin...@apache.org
Subject svn commit: r1846683 - /poi/site/src/documentation/content/xdocs/components/spreadsheet/quick-guide.xml
Date Thu, 15 Nov 2018 21:21:42 GMT
Author: fanningpj
Date: Thu Nov 15 21:21:42 2018
New Revision: 1846683

URL: http://svn.apache.org/viewvc?rev=1846683&view=rev
Log:
fix sample code

Modified:
    poi/site/src/documentation/content/xdocs/components/spreadsheet/quick-guide.xml

Modified: poi/site/src/documentation/content/xdocs/components/spreadsheet/quick-guide.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/components/spreadsheet/quick-guide.xml?rev=1846683&r1=1846682&r2=1846683&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/components/spreadsheet/quick-guide.xml (original)
+++ poi/site/src/documentation/content/xdocs/components/spreadsheet/quick-guide.xml Thu Nov
15 21:21:42 2018
@@ -652,7 +652,7 @@ Examples:
     cell.setCellValue("custom XSSF colors");
 
     XSSFCellStyle style1 = wb.createCellStyle();
-    style1.setFillForegroundColor(new XSSFColor(new java.awt.Color(128, 0, 128)));
+    style1.setFillForegroundColor(new XSSFColor(new java.awt.Color(128, 0, 128), new DefaultIndexedColorMap()));
     style1.setFillPattern(FillPatternType.SOLID_FOREGROUND);
                     </source>
                 </section>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message