12
我需要在gwt
與UiBinder
創建一個pushButton(所以它是一個帶圖像的按鈕),但我不知道如何繼續。這裏是我的ui.xml
代碼:UiBinder gwt pushButton
<g:PushButton ui:field="myPushButton"/>
而在* java文件我定義爲:
PushButton myPushButton;
如何將圖片添加到按鈕?我試過以下,但將無法正常工作:
<g:PushButton ui:field="myPushButton" image="myImage.gif" />
感謝