• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Print JTree on several pages

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic