Printing in java



hi,
I used an example program to print a page in java.The g.drawString
method is fine when i write simple text.If I try to print a JTable I
could not use this.If I try the print method of JTable it prints one
table per page.How to print more than one table per page.
Thanks for reading.

.