I am using google web toolkit, and I want to enter an URL in a textbox, and display the image from this URL on the page, so I use an ArrayList to handle my images, and a VerticalPanel, to display my images. So I want to add my image to my ArrayList and panel only when the URL is valid, and the data is an image.
I tried with image.addErrorHandler(), but it's not really what I want, I don't know how to use this, to stop the add of my image. So I saw this post from stackoverflow , but I don't understand how it works...
Thank you for your help !