• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing Help  RSS feed

 
Nikkie Babu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me how can i print the contents which are present inside a JTable.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37256
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this about a JTable rather than a JDBC table, I'm moving the post to our Swing forum.
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know a lot about printing, so I had a look in Horstmann's book, where I expected to find something useful.

And, lo and behold, on p375 of vol 2, there it is . . .
And that's it. It says there is a JTable.print() method but it is only available in J5.0. There are other versions of print(); look in the API.

I think I have tried it in the past and it worked. Try it and see.

CR
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!