0
votes

/*"No source code is available for type com.reveregroup.gwt.imagepreloader.FitImage; did you forget to inherit a required module?" */

Canvas left1 = new Canvas();
left1.setAutoHeight();
left1.setWidth(75);

FitImage img = new FitImage();
img.setUrl("/animals/Baboon.jpg");

img.setMaxSize(75, 50);
left1.addChild(img);
1
Did you include ImagePreloader.gwt.xml in your module file? - Martijn Wijns
Yes i have included it. @MartijnWijns - Rahul Gulwani
Then I guess you also added the gwt-image-loader jar to the build path, right? - Martijn Wijns
Yes. Exactly. i have added the jar file and also imported the class in my .java file. @MartijnWijns - Rahul Gulwani
Can you put the solution to your problem as an answer to your own question? Other people with the same problem might benefit from it in the future. - Martijn Wijns

1 Answers

2
votes

add:

<inherits name="com.reveregroup.gwt.imagepreloader.ImagePreloader" /> 

in your gwt.xml file