回覆列表
  • 1 # oggui31229

    importjxl.Workbook;importjxl.format.Colour;importjxl.write.*;importjava.io.File;publicclassTest{publicstaticvoidmain(String[]args)throwsException{WritableWorkbookworkbook=Workbook.createWorkbook(newFile("test.xls"));WritableSheetsheet=workbook.createSheet("test",0);WritableCellcell=newLabel(0,0,"test");WritableCellFormatwritableCellFormat=newWritableCellFormat();writableCellFormat.setBackground(Colour.RED);cell.setCellFormat(writableCellFormat);sheet.addCell(cell);workbook.write();workbook.close();}}

  • 中秋節和大豐收的關聯?
  • 新奇蹟世界AC怪?