How do I print the contents of a JTextComponent, with headers, footers, and across multiple pages?

John Zukowski

Added to JDK 6, you call the print() method of JTextComponent to do this. Prior versions required you to paginate things yourself.

About | Sitemap | Contact
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.