JasonDoyle 0 Newbie Poster

Is it possible to remove the animated gif from view once it had played once, i am using

tr = new MediaTracker(this);
    img = getImage(getCodeBase(),"test.gif");
    tr.addImage(img,0);
    g.drawImage(img, 0, 0, this);

to display it but it just keeps playing over and over again. Is there a way to remove it after it is played once?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.