This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Applets and the fly likes Image problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Image problems" Watch "Image problems" New topic

Image problems

Chris Hare

Joined: Mar 30, 2001
Posts: 3
Here's my situation:
-I have an array of images loaded from gifs into an applet with a mediaTracker.
-The applet creates an instance of a gui I made with a frame,etc.
-Using "ImagePanel extends Panel" which I created, I display the images in the gui
Some of the images are not appearing while others are.
Reasons? Solutions?
Chris Hare

Joined: Mar 30, 2001
Posts: 3
Here's some code:
class ImagePanel extends Panel{
Image image;
public ImagePanel(){
public ImagePanel(Image img){
image = img;}
public void paint(Graphics g){
Rahul Rathore
Ranch Hand

Joined: Sep 30, 2000
Posts: 324
Maybe MediaTracker is not correctly used to ensure that all images are loaded. Without seeing source-code it is difficult to say what the problem is.
I agree. Here's the link:
subject: Image problems
It's not a secret anymore!