Re: Why it shows like "Unknown Source" for Invalid Path? Hi Vinoth!
thnx for spending your time to me...
I noticed later that class ImageIcon indeed waits for that thread to finish using MediaTracker.
But shouldn't method getImage() not FIRST check the presence of the image BEFORE starting the thread to load it? And the problem does not only occur with images, any file in the jar has the same problem.
And why is there no problem when the URL is referring to an image folder at the host? The unknown image simply isn't loaded then, but the program continues normally.
__________________
cheers
Aman
|