/ *“没有源代码可用于com.reveregroup.gwt.imagepreloader.FitImage类型;您是否忘记继承所需的模块?” * /
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);
答案 0 :(得分:2)
添加:
<inherits name="com.reveregroup.gwt.imagepreloader.ImagePreloader" />