Hi all, I have a complex form I wish to print out. It consists of a header (JPanel), a JTable and a footer (another JPanel).
The JTable data is arbitrary length and there is a need in future to put multiple JTables into the printout. My solution (so far) is to create a Printable that wraps 3 printables (one for header/jtable/footer) and offsets the graphic context and page size to take account of the header on the first page so the JTable prints with what it thinks is a smaller first page. The problem I am having is getting the footer at the end of the JTables printable. - all I know is when the JTable has printed it's last page - but not how far down the page it printed. Is there an easy or efficient or even a brutal way to work out how far down a page someting has printed. I have thought about passing in a dummy graphics object created from a BufferedImage - but without checking every pixel to see if it has been printed to from the bottom corner up how else can I acheive this? [Message sent by forum member 'teilo' (teilo)] http://forums.java.net/jive/thread.jspa?messageID=115259 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
