• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

printing JTables - concatenating? what about the panels?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is too difficult a question for "beginning", so I shall move it.
 
domingos manuel
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I don't know the answer, so it will be beyond a beginner. But then I know nothing much about tables anyway
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic