Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Component prints incorrectly to printer (OK on screen)

jen kat
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ive written a Component class which sits inside a frame. It displays on the screen perfectly.. but when I try to print it (to printer), the print diaplog box comes up ok, but half the data doesnt print!
The same paint method is used to print to screen as is used to print to paper.
I only want to print the Component - not the frame etc. Everything is contained within my Component class including the print methods..
I use the following methods to do my printing:

The class extends printable
The printJewel method is called by an key listener
I may be doing this the wrong way... but any help would be appreciated!!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic