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

trouble changing imageable area

Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our website hosts an applet that prints out an image to the user's printer. The applet hasn't been modified in 2 years, and I'm trying to change its source because we extended the length of the image but the height is also hardcoded on the applet side. I've already changed two Paper methods for the new height:

setSize() and setImageableArea()

However, when the applets prints it, the bottom is still blank, so I'm digging through the rest of this code to try to figure out where it might be hardcoded. The applet only has two classes:

Printer extends Applet (calls setSize and setImageableArea and loads applet param into a LabelImage object)

LabelImage extends Component implements Printable, ImageObserver

I know this is a shot in the dark, but any ideas what to look for? I've seen the new longer images--they're fine. It's just that these applet classes still think the image is shorter...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic