我记得用DELPHI可以实现,用JAVA就不知道了。

解决方案 »

  1.   

    import jxl.write.WritableCellFormat ;WritableCellFormat format =  new WritableCellFormat(new WritableFont(WritableFont.ARIAL,9));//设置字体
    format.setWrap(true);//自动换行//创建cell时
    Label label = new Label(0,0,"XXXXXXXXXXXXXXXXXXXX",format);
      

  2.   

    这个应该是不可以的 吧
    应该直接打开Excel文件,在里面改变吧
    呵呵
      

  3.   

    应该可以的
    设好自动换行,然后设定这个列的宽度:WritableSheet的方法setColumnView(int 列序号,int 宽度)JXL的文档:public void setColumnView(int col,int width)
    Sets the width of the column on this sheet, in characters. This causes Excel to resize the entire column. If the columns specified already has view information associated with it, then it is replaced by the new data Parameters:
    col - the column to be formatted
    width - the width of the column  //注意这里的宽度是按字符数来算的