I'm trying to display an image on a panel with the following code. I've tried .png, .gif, and .ico files and get the same results each time.
When deployed all I see is either blank or the red x. Any information would be greatly appreciated.
Thanks, Dany
Image gwtImage =
new Image("js/ext/resources/images/custom/Remove-32.png");gwtImage.setTitle(
"I am a GWT Image Widget"); apContactListViewBrowser.add(gwtImage, 153, 157);gwtImage.setSize(
"78px", "70px");image.setVisible(
true);Your issue might be the lack of a leading slash – have you tried with this?
Image gwtImage = new Image("/js/ext/resources/images/custom/Remove-32.png");
Thomas
From: Thomas Arp