Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing Swing Components  RSS feed

 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • 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
 
Michael Dunn
Ranch Hand
Posts: 4632
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick scan of that looks like it is what I need. I appreciate the help.

Jeff
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!