aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorGlen Stampoultzis <glens@apache.org>2002-03-11 01:46:47 +0000
committerGlen Stampoultzis <glens@apache.org>2002-03-11 01:46:47 +0000
commitdb919cdcaa2ea637979917c9bc145c891fcda04b (patch)
tree2945d93d82f9cdd95eda6fe94aa11fbb6173f602 /src/examples
parent27a1a540941f3adf32a707789e755002c44f9645 (diff)
downloadpoi-db919cdcaa2ea637979917c9bc145c891fcda04b.tar.gz
poi-db919cdcaa2ea637979917c9bc145c891fcda04b.zip
Small update to the border bug.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352201 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/hssf/usermodel/examples/Borders.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/examples/src/org/apache/poi/hssf/usermodel/examples/Borders.java b/src/examples/src/org/apache/poi/hssf/usermodel/examples/Borders.java
index 3934c73d2b..9f35244d92 100644
--- a/src/examples/src/org/apache/poi/hssf/usermodel/examples/Borders.java
+++ b/src/examples/src/org/apache/poi/hssf/usermodel/examples/Borders.java
@@ -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