java - Apply color to tabs in excel using apache poi -
is there way tabs can given specific colors using apache poi through java?. using hssf workbook.
you can change sheet tab color using following:
sheet.settabcolor(int colorindex)
is used that, , if use
sheet.settabcolor(colornum);
colornum = 0 : set black color in tab.
colornum = 1 : set white color in tab.
colornum = 2 : set red color in tab.
colornum = 3 : set green color in tab.
colornum = 4 : set blue color in tab.
colornum = 5 : set yellow color in tab.
and on.
Comments
Post a Comment