Error message for failed new ImageIcon(url)

Posted by Carsten on Stack Overflow See other posts from Stack Overflow or by Carsten
Published on 2010-05-26T01:43:22Z Indexed on 2010/05/26 1:51 UTC
Read the original article Hit count: 322

Filed under:
|

I try to load an image with:

ImageIcon imageIcon = new ImageIcon(url);

if I query the load status: imageIcon.getImageLoadStatus(); it returns MediaTracker.ERRORED

Is there a way to get an error message saying what the problem was?

© Stack Overflow or respective owner

Related posts about java

Related posts about imageio