My name is Ilia and I am 9 years old now. Actually I look for kids who love Java as I do. But now I am writing regarding a problem with my applet. (click on the link to see it:
www.doubleplus.be/en1/page8.html “Learn French”)
It works quiet perfectly on my local computer but the download time from the server is very long even thought there are only 5 pictures in use in this example. I have used MediaTracker class in this applet:
MediaTracker tracker = new MediaTracker(this);
for(int i=0;i<im.length;i++)
{
im[i]=getImage(getCodeBase(),"images/im"+(i +1)+".JPG");
tracker.addImage(im[i], 0);
}
// Wait until all images are fully loaded
//-----------------------------------------------
try
{
tracker.waitForAll();
m_fInitialized = !tracker.isErrorAny();
}
catch (InterruptedException e)
{
}
Is there anybody who can help me?
|