如何将图像添加到 GWT 按钮或如何使用 Mosaic 的按钮添加图像。我不知道如何使用THIS我的代码中的示例。我需要添加什么库。我的项目中有 Mosaic 库,我可以使用它,但他们那里的示例对我不起作用。
谢谢
最佳答案
如果您只想将图像添加到普通 GWT 按钮,那么 PushButton是要走的路:
PushButton pushButton = new PushButton(new Image("test.png"));
关于java - GWT 按钮中的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1456889/