mirror of https://github.com/apache/poi.git
Small update to the border bug.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352201 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27a1a54094
commit
db919cdcaa
|
@ -82,9 +82,13 @@ public class Borders
|
|||
// Style the cell with borders all around.
|
||||
HSSFCellStyle style = wb.createCellStyle();
|
||||
style.setBorderBottom(HSSFCellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(HSSFCellStyle.BLACK);
|
||||
style.setBorderLeft(HSSFCellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(HSSFCellStyle.GREEN);
|
||||
style.setBorderRight(HSSFCellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(HSSFCellStyle.BLUE);
|
||||
style.setBorderTop(HSSFCellStyle.BORDER_MEDIUM_DASHED);
|
||||
style.setTopBorderColor(HSSFCellStyle.AUTOMATIC);
|
||||
cell.setCellStyle(style);
|
||||
|
||||
// Write the output to a file
|
||||
|
|
Loading…
Reference in New Issue