https://issues.apache.org/bugzilla/show_bug.cgi?id=46493
Yegor Kozlov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #3 from Yegor Kozlov <[email protected]> 2009-01-29 08:19:18 PST --- You need to set the type of fill pattern. The following snippet of code works fine to me: CellStyle style = wb.createCellStyle(); style.setFillForegroundColor( IndexedColors.LIGHT_BLUE.getIndex() ); style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFont( font ); Cell cell = row.createCell( 0 ); cell.setCellStyle( style ); cell.setCellValue( "foo" ); See the quick guide: http://poi.apache.org/spreadsheet/quick-guide.html Yegor -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
