Results 1 to 1 of 1
- 02-11-2010, 11:31 PM #1
Member
- Join Date
- Feb 2010
- Location
- Ross Lunar Capsule 2571
- Posts
- 15
- Rep Power
- 0
Japplet.getImage(): What if image file does not exist?
Hi, I'm a java n00b. According to the API Japplet.getImage() returns regardless of whether the image exists or not. But in one applet I am hoping to handle an exception for the case in which the image file that is supposed to be there is not there. What would be the proper way to go about this?
I'm guessing MediaTracker is somehow the answer. I've used waitForAll() before, and I'm guessing the solution is in one of the error functions, but I am not sure what this would look like. I would appreciate any clarification, guidance, or examples.
Similar Threads
-
Getting images with getImage () when the connection resets
By fracedo in forum Advanced JavaReplies: 0Last Post: 11-13-2009, 03:18 PM -
java.io.File - Files do not exist
By TannerLD in forum New To JavaReplies: 8Last Post: 09-10-2009, 12:03 AM -
getImage - not fail when image doesn't exist
By leonid.ge in forum Java AppletsReplies: 0Last Post: 07-24-2009, 03:17 PM -
JFrame to JApplet or JApplet to JApplet
By ramesh.8189 in forum AWT / SwingReplies: 13Last Post: 02-08-2009, 06:14 AM -
How to display an image in JApplet
By fred in forum Java AppletsReplies: 1Last Post: 07-24-2007, 02:02 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks