I have a java desktop application with information about several entities. There is a “print” button than WHEN pressed various information should be collected and printed.
The question is: How can i select WHAT will be printed ON a specific location on the paper?
A more general question would be: How can i format information to be printed on paper?
I would suggest using something like iText for generating a PDF and print the PDF instead. As a bonus, the output can be saved easily and attached to an e-mail.