posted 19 years ago
I would suggest associating the background image with the JScrollPane's JViewport.
Since the view port itself doesn't scroll, that takes care of the problem.
Here is some sample code: I like to use a border to draw the image,
and in that way avoid excess subclassing, but your mileage may vary.
There is no emoticon for what I am feeling!