adding header and footer with printing doc

Hi,I am printing an html page using swing component. while printing, I want to add some string as header and footer in each page of the printing document. can some body help out how to add the header and footer? thanks.
[283 byte] By [proshno] at [2007-9-26 1:47:25]
# 1
can you post de code of this to see how can you put de footer and the header?
hbarriuso at 2007-6-29 2:46:28 > top of Java-index,Archived Forums,Java Programming...