From 6c4dcf82e8c4ee51c8258f2ab0641780d2bf8244 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Sat, 20 Jul 2002 14:10:57 +0000 Subject: [PATCH] Bugzilla Bug 9831 Problems with the cell format when setting border git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352793 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/model/Workbook.java | 5 +++++ .../org/apache/poi/hssf/record/ExtendedFormatRecord.java | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/poi/hssf/model/Workbook.java b/src/java/org/apache/poi/hssf/model/Workbook.java index fe5bbf1a6..691ab96f1 100644 --- a/src/java/org/apache/poi/hssf/model/Workbook.java +++ b/src/java/org/apache/poi/hssf/model/Workbook.java @@ -67,6 +67,7 @@ import org.apache.poi.util.POILogFactory; import org.apache.poi.hssf.record.*; import org.apache.poi.hssf.util.SheetReferences; +import org.apache.poi.hssf.util.HSSFColor; /** * Workbook @@ -1469,6 +1470,10 @@ public class Workbook { retval.setPaletteOptions(( short ) 0); retval.setAdtlPaletteOptions(( short ) 0); retval.setFillPaletteOptions(( short ) 0x20c0); + retval.setTopBorderPaletteIdx(HSSFColor.BLACK.index); + retval.setBottomBorderPaletteIdx(HSSFColor.BLACK.index); + retval.setLeftBorderPaletteIdx(HSSFColor.BLACK.index); + retval.setRightBorderPaletteIdx(HSSFColor.BLACK.index); return retval; } diff --git a/src/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java b/src/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java index b9042ab06..beedc6733 100644 --- a/src/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java +++ b/src/java/org/apache/poi/hssf/record/ExtendedFormatRecord.java @@ -251,7 +251,6 @@ public class ExtendedFormatRecord * @param data data of the record (should not contain sid/len) * @param offset of the record's data */ - public ExtendedFormatRecord(short id, short size, byte [] data, int offset) { @@ -1733,7 +1732,7 @@ public class ExtendedFormatRecord /** * get the background palette color index * - * @retyrb color palette index + * @return color palette index * @see #getFillPaletteOptions() */