title: Java: printing custom (Printable) page with header and footer
body: <p>I know that some components (JTable, JTextArea) in Java have own way to pass to them header and footer of the page.<br>
  Is it any easy way to print a page based on Printable implemented by myself or should i position them by myself (eg. in overriden print(...)  method of Printable interface)?<br>
  This Printable class as an input recieves pack of plaint text and thats all.
  Of course at the end i can put everything in JTextArea, but i wouldn't like to do this if there is some other way.<br>
  Regards.</p>