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.
Here is my code:
Cell cell = row.createCell(2); cell.setCellValue("SELECT"); //2 is the 2nd cell in my case
to set a default value, just setCellValue("first_item_value");
sheet.getRow(1).getCell(index).setCellValue("my_default_value");
I have did it as facing the same problem.