This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.awt.print  RSS feed

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)

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