• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.awt.print

 
Rich Stepanski
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to print graphics I've drawn onto an object that extends JPanel. This object implements Printable, and I have been able to print something.

My question - is there an easy way I can resize the graphics on the JPanel to fit my printing page? I have already converted the graphics to a Graphics2D object to translate the origin to match the ImageableX and ImageableY ,but there is about a 1/2 inch of graphics on the right that are cut off.

( I would rather not rework the graphics to be a 1/2 inch smaller)

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!