Before I get to the question, here is some background to the problem I am having. I am working on a printing enhancement to an application. When I send a print job to the printer the first page prints followed by two blank pages. As far as I can tell the print() is rendering the text properly into the Graphics2D object. Now for the question: Is it possible to view the contents of this Graphics2D object without recausing it to repaint? My hunch is that the printer is doing something incorrect with the data so I would like to view what I have rendered. The reason I am wondering if it is the printer is the fact that I can use the same code and send it to a different printer and the document prints fine. Thanks for your help, Steve
posted 12 years ago
Originally posted by S Saunders: Is it possible to view the contents of this Graphics2D object without recausing it to repaint?
Well of course many programs do a "print preview" before printing. What do you mean by not recausing it to repaint? You would have to repaint to bring up the preview window.
"JavaRanch, where the deer and the Certified play" - David O'Meara