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

How to print images  RSS feed

 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gurus,
I need to implement a print program to print a fews images, each per page. Could you suggest a way to do it. I thought it is easy as painting the image using swing but I print out a blank page. Please help and thanks.

John
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John, you could try painting the image onto a JPanel and then printing that component perhaps?
 
John McDonald
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But I would like to print couple images, one image for each page. And I don't want to create each panel for each image. Is there anyway to get around that. Thanks.

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