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
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.