Java 单元格边框显示在Excel中使用apache POI的消息框中的内容上
我得到以下问题 如您所见,橙色单元格的下边框位于消息框中的消息上方。如何解决这个问题Java 单元格边框显示在Excel中使用apache POI的消息框中的内容上,java,excel,apache-poi,Java,Excel,Apache Poi,我得到以下问题 如您所见,橙色单元格的下边框位于消息框中的消息上方。如何解决这个问题 private boolean createComments(int iCell,int iRow ,HashMap<String, String> hMap, XSSFSheet sheet, Row row, CellStyle style, String method){ XSSFDrawing patr = sheet.createDrawing
private boolean createComments(int iCell,int iRow ,HashMap<String, String> hMap, XSSFSheet sheet, Row row, CellStyle style, String method){
XSSFDrawing patr = sheet.createDrawingPatriarch();
boolean errorcheck = false;
XSSFComment comment1 = null;
String strComments = null;
if(hMap.containsKey(method) && iRow>0){
try{
strComments = hMap.get(method);
System.out.println("inside createComments--SSSSSSSSSSSSSS-- KKKKKKKKKKKKK");
System.out.println("inside 555555555555555 createComments----JJJJJJJJJJ ");
comment1 = patr.createCellComment(new XSSFClientAnchor(500, 800, 1500, 1500, (short)iCell, iRow, (short) iCell + 3, iRow +3));
comment1.setString(new XSSFRichTextString(strComments));
//row.getCell(iCell).setCellComment(comment1 );
row.getCell(iCell).setCellStyle(style);
errorcheck = true;
}catch(Exception e){
}
}
return errorcheck;
}
private boolean createComments(int-iCell、int-iRow、HashMap-hMap、XSSFSheet-sheet、Row-Row、CellStyle-style、String-method){
XSSFDrawing patr=sheet.createDrawingPatriar();
布尔errorcheck=false;
XSSFComment comment1=null;
字符串strComments=null;
如果(hMap.containsKey(方法)和&iRow>0){
试一试{
strComments=hMap.get(方法);
System.out.println(“内部createComments--ssssssssssss--kkkkkkkkkk”);
System.out.println(“内部555555555555555 createComments----jjjj”);
comment1=patr.createCellComment(新的XSSFClientAnchor(50080015001500,(短)iCell,iRow,(短)iCell+3,iRow+3));
comment1.setString(新的XSSFRichTextString(strComments));
//row.getCell(iCell.setcellcoment(comment1);
row.getCell(iCell.setCellStyle(style);
errorcheck=true;
}捕获(例外e){
}
}
返回错误检查;
}
能否在Excel中停止此操作?屏幕截图看起来好像格式注释-颜色和线条中的填充-透明度
设置为大于0。但这并不是apachepoi所能做到的。因此,问题(如果有的话)在别处。