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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -