This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing a Dialog using PrinterJob  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!