Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
Button Description Problem
button.setDescription("<div style='background-image:url(\"../VAADIN/themes/images/sample.png\"/)'>Sample Description</div>");
Here the image sample.png didn't display. Please anybody help me.............
Last updated on Jan, 8th 2012
This is not the way of setting an image on the button. Use the setIcon(...) method.
Last updated on
Syam's right about the setIcon method instead.
If you're curious about what you can put into a description, see the getDescription information in the API docs.
Cheers,
Bobby
Last updated on Jan, 8th 2012
You cannot reply to this thread.