📜  CellStyle改变背景颜色java代码示例

📅  最后修改于: 2022-03-11 14:52:15.888000             🧑  作者: Mango

代码示例1
CellStyle style = workbook.createCellStyle();

style.setFillForegroundColor(IndexedColors.YELLOW.getIndex());
style.setFillBackgroundColor(IndexedColors.YELLOW.getIndex());
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);