Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to print a jtable??  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
someone can gimme an example how to do it??
 
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sun has a tutorial on printing:
http://java.sun.com/docs/books/tutorial/2d/printing/index.html

another way to print the table data is to use this framework:
http://www.object-refinery.com/jfreereport/index.html
it provides printing preview and printing of TableModel and more. and it's free.
cheers,
Chantal
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i also use JFreeReport in a past project ...
Verry good!
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!