Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 单元格边框显示在Excel中使用apache POI的消息框中的内容上_Java_Excel_Apache Poi - Fatal编程技术网

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所能做到的。因此,问题(如果有的话)在别处。