Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger


Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am currently trying to print a multipage JTable but the the thing is on the left hand side of the JTable does not have any grid lines and i have tried to draw a rectangle around the jTable before printing it but nothing is happening.

Another thing is that when the JTable goes on the next page for printing there are trailing grid lines on the previous page. I have tried clipping and translating it but nothing works.

You guys can try removing the painting of the Table Headers to get a clearer picture if you want

Here is the code with a mini test program so you guys can run the program and see what i mean

Basically i am trying to print a JTable with the option of table headers as a complete grid and withou any trainling lines

I know that 1.5 now has printing but i need to use this way of printing(i.e. by using the printable interface) for the program to suit a special kind of need

Any help is greatly appreciated

Thank You

Yous Sincerely

Richard West
Yes, my master! Here is the tiny ad you asked for:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic