小编oha*_*ana的帖子

UiBinder中的gwt pushButton

我需要创建一个按钮(因此它与图像的按钮)在gwt用UiBinder,但我不知道如何进行.这是我的ui.xml代码:

<g:PushButton ui:field="myPushButton"/>

在*.java文件中我定义了:
PushButton myPushButton;

如何将图像添加到按钮?我尝试了以下但不起作用:

<g:PushButton ui:field="myPushButton" image="myImage.gif" />

谢谢

java gwt uibinder

12
推荐指数
1
解决办法
7564
查看次数

标签 统计

gwt ×1

java ×1

uibinder ×1