The method setFillForegroundColor(short) in the type CellStyle is not applicable for the arguments (XSSFColor)
问题 I am trying to get custom colours to work in Apache POI but I got into a small problem. So far I have been using IndexedColors , but as a palette, it is pretty drab. Thus using an RGB format for colour selection would help me to make my spreadsheets look much better. I have been using this question's answer, as it solves my problem theoretically. However, I am facing a very silly problem that I do not really know how to solve. The error I receive is: The method setFillForegroundColor(short)