I use a JTree which is loaded dynamically into the application. Now i need to print the entire tree structure. That part also i have done it is working fine but it is printing only the first page. My code is shown below.
How do i achieve printing in multiple pages. I think i need to calculate the number of pages first. Am i doing anything wrong.