• 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

Print JTree on several pages

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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,
a wee bit from the empire
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic