Is there any way by which tabs can be given specific colors using apache poi through java?. I am using HSSF workbook.
You can change the sheet tab color using following:
sheet.setTabColor(int colorIndex)
is used for that, and so if we 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 so on.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.