Forums Register Login

trouble changing imageable area

+Pie Number of slices to send: Send
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...
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 858 times.
Similar Threads
problem with refactored program
Printing a JPanel
PDF Printing - Margin Problem
Rotating a JWindow with multiple JPanels
printout from applet varies depending on server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:26:56.