Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing JTable into Excel

I am planning to move the contents of a JTable into a Microsoft Excel sheet. The Excel sheet should have some format specifications. For instance if a column has a value 'A' it should be green in colour. If it is 'B' red in colour.

I am in analysis stage. Which Jar should I use? The data is not huge.Performance is not a big concern.

like image 415
Harish Avatar asked Feb 03 '11 06:02

Harish


2 Answers

I would recommend Apache POI. It is easy to use, allows styling, etc. See the quick guide here.

like image 77
Michael Avatar answered Oct 02 '22 19:10

Michael


An alternative could be JExcelAPI - I've used this and found it excellent.

like image 38
TrueDub Avatar answered Oct 02 '22 18:10

TrueDub