This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes printing JTables - concatenating? what about the panels? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "printing JTables - concatenating? what about the panels?" Watch "printing JTables - concatenating? what about the panels?" New topic
Author

printing JTables - concatenating? what about the panels?

domingos manuel
Greenhorn

Joined: Sep 24, 2009
Posts: 21
Hi, I am printing a JTable in this manner:



and it works perfectly fine.
My problem is: I have two tables. A details table and a totals table.
How do I concatenate both tables into one page (or one document) before sending to the printer?
Now I can either print one table or the other. Or alternatively hit the print button twice.
And what if I have text (strings) sitting in the panel, that I would like to print in between the table header and the tables themselves?Is this achieavable?

Please assist.
Thank you.


Domingos Manuel
South Africa
skype: dm.manuel
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37900
    
  22
This is too difficult a question for "beginning", so I shall move it.
domingos manuel
Greenhorn

Joined: Sep 24, 2009
Posts: 21
Hi Campbell,
Do you reckon its a difficult question for a beginner?!...
Wow, that's so nice. That means I am climbing the ladder then... Feels so good.
Still hoping for an answer though.
Thank you
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37900
    
  22
Well, I don't know the answer, so it will be beyond a beginner. But then I know nothing much about tables anyway
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: printing JTables - concatenating? what about the panels?
 
Similar Threads
Print Preview in Java swing
change TITLE dimension in Printable?
Printing and Preview of Nested JTable not working and performance is slow....
Blank Frame being displayed
Printing Problem to print header