我想将单元格背景设置为自定义颜色。
我使用 HSSFWorkbook
(不能使用其他任何东西)。
HSSFPalette palette = aWorkBook.getCustomPalette();
Color col = new Color(backgroundColor);
HSSFColor myColor = palette.addColor((byte) 10, (byte) 11, (byte) 12);
我遇到了这个错误:java.lang.RuntimeException: Could not find free color index