Skip to content
Advertisement

Apache POI Excel row color is only black and doesn’t change

I am trying to make excel files background one row white and other aqua color. But for some reason whatever I do the color always changes to black.

JavaScript

It doesn’t change whatever I do, even if I try GREY_25_PERCENT its completely black. Here’s picture of my excel file

Advertisement

Answer

It may seem counterintuitive, but using

JavaScript

in combination with

JavaScript

sets the background color of a cell.

The cell background itself probably also consists of two layers: a foreground and a background.

Advertisement