aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to print contents of JTable !!!Please Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to print contents of JTable !!!Please Help" Watch "How to print contents of JTable !!!Please Help" New topic
Author

How to print contents of JTable !!!Please Help

Andy Huu
Greenhorn

Joined: Dec 07, 2010
Posts: 2
How to print contents of JTable with customized header and footer on the page.

I am strugling to print the report usin java swing. I have generated report and kept the results in a JTable, now i want to print the contents with the company information on top of the page and signature at the end of the records. Can anyone help me on this regards...Thanks
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2200
    
    7
Read the JTable API and follow the link to the Swing tutorial on "How to Use Tables" where you will find a section on printing.
Andy Huu
Greenhorn

Joined: Dec 07, 2010
Posts: 2
Thanks for reply. I have tried a lots of material in the internet. i couldn't find something useful to me. Please Help
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2200
    
    7
If the working example from the tutorial doesn't help you then I'm not sure how you expect me to help you.
Bobby Smallman
Ranch Hand

Joined: Sep 09, 2010
Posts: 107
http://download.oracle.com/javase/tutorial/uiswing/components/table.html


Everyday in every way, we get a little better.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to print contents of JTable !!!Please Help