[2718] in java-interest

home help back first fref pref prev next nref lref last post

Displaying a GIF

daemon@ATHENA.MIT.EDU (Michael Afergan)
Wed Oct 11 19:36:08 1995

From: mikea@ai.mit.edu (Michael Afergan)
Date: Wed, 11 Oct 1995 17:37:49 -0400
To: hotjava-interest@java.sun.com, java-interest@java.sun.com

  For those who read my last posting, please forgive the type-o in the
g.drawImage statement.  Please note the correction below.  However,
the problem still remains.



	I am attempting to display a gif in a simple applet.  I have
already painted the background and done some other stuff that works
perfectly.  I then load a GIF using the statement :
 Image im = getImage("C:\\hotjava\\demo\\images\\dancing-duke\\t1.gif");
	and then try to display the image using:
		g.drawImage(im,50,50);

However, nothing displays.  All previous and following lines work
fine.  I have attempted diffrent approaches and locations of this line
in my program.  Right now they are back to back (in paint()).  Before,
I had the getImage() statement in init().  Nevertheless, neither setup
has helped at all.  Any ideas why?

  Any suggestions would be greatly appreciated,

  -- Mike


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post