Hi All, Can somebody tell me how to print the contents of a JTable. My requirement is i have a JTable with some data. The entire table along with its header, should be printed. Please give me some sample code. Thanks in advance.
Joined: Jan 06, 2005
Here's a (q&d) sample. I think you may adjust it to your needs.
You may found useful to look at some reporting tools too (like JasperReports).