I just discovered the Apache POI Project. I needed to export data from a JTable into an Excel spreadsheet and I didn’t want the hassle of exporting as csv and getting warnings from Excel, so a little search gave me POI, and it is simple and easy to use.
Download it and read the documentation that comes with the download (it seems to be a little more updated than the website). Plenty of examples.