aspose file tools
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 The Software Craftsman this week in the Agile 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.
subject: Image problems