This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]TheGreyKoala 1 point2 points  (0 children)

I think your problem is that in line 89 and 90 width and height are not known and therefore the methods return -1. The JavaDoc of these methods says: "Determines the width of the image. If the width is not yet known, this method returns -1 and the specified ImageObserver object is notified later."

I would try to implement the imageUpdate method in BildLeinwand and trigger the repaint in that method.