• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Printing Swing Components

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I've been reading all sorts of examples on printing Swing components, and they all say the same thing. In the print method, they check to make sure the page index == 0. I cannot figure out why this is. What if I have a component that takes up multiple sheets of paper, can I not print it?

Also, when I display the print dialog (using PrinterJob's printDialog method), it always defaults to showing pages 1-9999, rather than limiting it to the actual number of pages?

Can someone explain these two issues to me?

Thank you,
Jeff
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this thread might help

http://forum.java.sun.com/thread.jspa?threadID=5122492&tstart=0
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A quick scan of that looks like it is what I need. I appreciate the help.

Jeff
 
reply
    Bookmark Topic Watch Topic
  • New Topic