aboutsummaryrefslogtreecommitdiffstats
path: root/src/documentation/content/xdocs/spreadsheet/converting.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/documentation/content/xdocs/spreadsheet/converting.xml')
-rw-r--r--src/documentation/content/xdocs/spreadsheet/converting.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/documentation/content/xdocs/spreadsheet/converting.xml b/src/documentation/content/xdocs/spreadsheet/converting.xml
index 8d0e966e35..c8c891bd94 100644
--- a/src/documentation/content/xdocs/spreadsheet/converting.xml
+++ b/src/documentation/content/xdocs/spreadsheet/converting.xml
@@ -121,12 +121,12 @@ HSSFFont f2 = wb.createFont();
// Set font 1 to 12 point type, blue and bold
f.setFontHeightInPoints((short) 12);
-f.setColor( (short)0xc );
+f.setColor( HSSFColor.RED.index );
f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
// Set font 2 to 10 point type, red and bold
f2.setFontHeightInPoints((short) 10);
-f2.setColor( (short)HSSFFont.COLOR_RED );
+f2.setColor( HSSFFont.RED.index );
f2.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
// Set cell style and formatting
@@ -183,12 +183,12 @@ for(int i=0; i<wbs.length; i++) {
// Set font 1 to 12 point type, blue and bold
f.setFontHeightInPoints((short) 12);
- f.setColor( (short)0xc );
+ f.setColor( IndexedColors.RED.getIndex() );
f.setBoldweight(Font.BOLDWEIGHT_BOLD);
// Set font 2 to 10 point type, red and bold
f2.setFontHeightInPoints((short) 10);
- f2.setColor( (short)Font.COLOR_RED );
+ f2.setColor( IndexedColors.RED.getIndex() );
f2.setBoldweight(Font.BOLDWEIGHT_BOLD);
// Set cell style and formatting