• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing a Dialog using PrinterJob

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to print a Dialog using a PrinterJob. I have made my Dialog class Printable and am passsing the Dialog in the setPrintable() method. However, how do get the Dialog to render itself within the print(Graphics g, PageFormat pf, int pageIndex) method of my Dialog class?
The two examples I have found from SUN only cover printing components by rendering them explicitly onto the Graphics using a drawxxx() method?
There has to be an easy way to do this? Any help would be much appreciated.
Louis
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!