Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTables  RSS feed

Richard West
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!