Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void rowStyle(){
- Workbook workbook = new XSSFWorkbook();
- CellStyle headerStyle = workbook.createCellStyle();
- headerStyle.setFillForegroundColor(IndexedColors.LIGHT_BLUE.getIndex());
- headerStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
- XSSFFont font = ((XSSFWorkbook) workbook).createFont();
- font.setFontName("Arial");
- font.setFontHeightInPoints((short) 16);
- font.setBold(true);
- headerStyle.setFont(font);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement