• Post Reply Bookmark Topic Watch Topic
  • New Topic

Print JTree on several pages  RSS feed

 
Amelie Cornelis
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I would like to print my JTree on several pages. I have implemented both Printable and Pageable, but only the first page prints correctly. The second page is just a repeat of the first one.

In my tree class:


In the applet that contains my tree:


The commented lines were supposed to shift the display to the pn-th page, but it does not: the nodes displayed on page 2 are at the bottom of the page, and if you put page 1 and 2 on top of each other and look by transparence, you can see it just continues to print as if on continuous piece of paper...

Thanks for any help,
Amelie.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!