I want to use a custom RGB color (38,38,38) for my cell backgroundcolor. For that I use this code:
IndexedColorMap colorMap = wb.getStylesSource().getIndexedColors();
XSSFColor customtablegrey = new XSSFColor(new java.awt.Color(38,38,38), colorMap);
cellFormat1.setFillForegroundColor(customtablegrey.getIndex());
cellFormat1.setFillPattern(FillPatternType.SOLID_FOREGROUND);
But all I get is a black background. Why and how can I change it?
Best Regards,
Christian