Either pass the image in as a parameter, or hard code a reference to the image into your applet. Then, in your paint() method, near the beginning do the following:
Then, do any other graphics operations after this to have graphics drawn on top of the image. However, things aren't as easy as this... you may need to scale your image if the image is not the same size as your applet( Java can do this through a different drawImage() method where you specify the size you want the image to display as )... and if you want the image to be centered or tiled you will have to write that behavior yourself... ( by manipulating the x and y values of the drawImage() call ) HTH, -Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads