Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing JTable with Renderers  RSS feed

 
Jeremy Hooie
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to print a complex JTable with JList and JLabel table cell renderers. The code to handle the actual printing works fine, but previewing the table causes an OutOfMemoryError exeption. The same code for the preview works fine for tables without renderers. Any Ideas?
Thanks,
Jeremy
 
Janny Tima
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try the wanderful solution provided by http://www.activetree.com for free to print complex customer rendered JTable. It prints as well as generates PDF files for Swing components such as JTable, JTextArea, JEditorPane, JTextPane, any kind of JTextComponent. Also prints J2EE program output by automatically formatting to page with line and column breaks.
You can actually run the online demo from this website.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!