posted 21 years ago
You could get the image by using the ImageIcon.getImage() method.
The component that you posted code for only allows you to add one image to the panel... a background image. To support multiple images, you'd have to add more methods to set the "on top" images, and modify the paint method to paint the background and then all the "on top" images. Take a look ath the following code. I tested it out with a PNG with transparency, and it worked:
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.