JXL添加下拉框

 

Label lblColumn = null;

WritableSheet ws = wb.createSheet("标签", 0);

lblColumn = new Label(12, nRow, "请选择", fmtCenterCaption);
    WritableCellFeatures wcf = new WritableCellFeatures();
    List angerlist = new ArrayList();
    angerlist.add("电话");
    angerlist.add("手机");
    angerlist.add("呼机");
    wcf.setDataValidationList(angerlist);
    lblColumn.setCellFeatures(wcf);
    ws.addCell(lblColumn);

你可能感兴趣的:(JXL添加下拉框)