Excel Drop down list using Apache POI

前端 未结 2 1157
盖世英雄少女心
盖世英雄少女心 2020-12-09 04:18

I need to create a drop down list in excel file using Apache POI. and I am able to do that so But I am not able to make first item in drop down list as default Item.

<
2条回答
  •  长情又很酷
    2020-12-09 05:03

    Here is my code:

    Cell cell = row.createCell(2);
    cell.setCellValue("SELECT");
    
    //2 is the 2nd cell in my case
    

提交回复
热议问题