请问,使用jXL写Excel文件时,如何通过程序生成下拉框。就是在excel中点击此列的单元格,然后显示一个下拉框,有些值可选。欢迎大侠指点,谢谢!!! 我在本地用excel2007,
WritableCellFeatures wcfc = new WritableCellFeatures();
List<String> al = new ArrayList<String>();
al.add("The Fellowship of the Ring");
al.add("The Two Towers");
al.add("The Return of the King");
wcfc.setDataValidationList(al);
lLabel.setCellFeatures(wcfc);
sheet.addCell(lLabel);
发现这种方式不行,请大侠们指点