views:

1712

answers:

1

How do I add image to GWT Button or how do I use Mosaic's Buttons to add image. I can't figure out how to use THIS example in my code. What library do I need to add. I have Mosaic Library in my project and I can use it but the example that they have there does not work for me.

Thanks

+4  A: 

If you just want to add an image to a normal GWT Button, then PushButton is the way to go:

PushButton pushButton = new PushButton(new Image("test.png"));
Igor Klimer