jxl怎么讓Excel文件的其中一行數據變成紅色?
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();}}