I am trying to display an Image using applet. Image is updated after every 4 seconds so i want my applet to show updated image.I am not sure where
i should load the image i have tried to load it in the init() method as well as in "start" method but it didnt workd out for me.Can anybody please help me with this

Hi , I added the follwing code in my applet and it solved my problem

try{ 
    // Step 1: get a Runtime object 
    Runtime r = Runtime.getRuntime(); 
    r.gc(); 
    Thread.sleep(1);

    }catch(InterruptedException xx){ xx.getMessage(); };


}
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.