首页 新闻 会员 周边

poi setColor方法不起作用.

0
悬赏园豆:15 [已关闭问题] 关闭于 2019-04-12 12:01

Font ztFont = workbook.createFont();
ztFont.setItalic(ztFont2.getItalic());
if (srcCellType == Cell.CELL_TYPE_STRING) {
if("版本号:".equals(cell2.getStringCellValue())|| "合同
号:".equals(cell2.getStringCellValue())){
System.out.println((IndexedColors.BLUE.getIndex()));
ztFont.setColor(IndexedColors.BLUE.getIndex());
}else{
ztFont.setColor(ztFont2.getColor());
}
}else{
ztFont.setColor(ztFont2.getColor());
}.

对两个excel的字体设置颜色是.都设置为blue.得到的字体颜色却不一样.

Yesdito的主页 Yesdito | 初学一级 | 园豆:3
提问于:2019-02-25 11:30
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册