52
I want to set the foreground color of a cell to a given color in hex code. For example, when I try to set it to red:
style.setFillForegroundColor(new XSSFColor(Color.decode("#FF0000")).getIndexed());
No matter what Hex value I set in the parameter for the decode function, the getIndexed function will always return the black color.
Could it be that I might be doing something wrong? I think it's a bug but I'm not sure...