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();}}
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();}}