Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Slideshow that i created giving me problems!

 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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.


 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!