This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 44048
    
  33
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: 44048
    
  33
Well, I don't know the answer, so it will be beyond a beginner. But then I know nothing much about tables anyway
 
Have you checked out Aspose?
 
subject: printing JTables - concatenating? what about the panels?
 
It's not a secret anymore!