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 -

CSS3 Transition to highlight new elements created in JQuery -