Below is the code to start slideshow as soon as i start the html page but it's giving output as i expected. The function that's giving me problems is the checkID(int id) of MediaTracker class.
If i use the alternative version of checkID(int id,boolean load) it seems to work fine. But why? that i dont know. Please help me.
Neither the getImage method call, nor the checkID(int) method call cause the image to be loaded, while checkID(int, true) *does* cause it to be loaded. This is explained in the javadocs of the various getImage and checkID methods.