I'm drawing an image in an applet
I use g.drawImage(img, x,y..... , this);
where this is the applet. It says that for that argument drawImage should take an ImageObserver.
i have a class called Foo and i want to have a draw function and allow foo to draw itself like this...
draw(Graphics g, Image img, .......)
but I need to pass in an ImageObserver. When I try to pass "this" as an imageobserver i get an error.
what am i doing wrong?