Hi all !
First let me apologize for my bad english.
Secondly, I tried to show on the screen transpaernt animated gif, in another words, sprite(character) which walk on the desktop, well, i succsed, but there is a problem, if the sprite move is head, the on the screen you will see the sprite before and after the movmenet, there is a trail.
i hope that you could help me.
my code is very simple at this moment:
public class WS extends JWindow
{
Image img=null;
Image img2=null;
Toolkit tk=null;
public WS()
{
tk=Toolkit.getDefaultToolkit();
this.setSize(500, 500);
this.setLocation(500, 500);
img2=tk.getImage("MijalNo.gif");
this.prepareImage(img2, null);
this.setVisible(true);
}
public void paint(Graphics g)
{
g.drawImage(img2, 0, 0, this);
}
}
thank you.