This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I am trying to preview or print the same Component using PrinterJob and Printable.print method. I am able to preview or print if I uses Graphics2D.draw method but not succeeded with JTextPane.paint/JTextPane.repaint or JTable.paint/JTable.repaint methods. Please tell me how to preview or print them.