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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Popover background picture
Hello!
I have an embedded picture on a Popover Window.
Embedded em = new Embedded("", new ThemeResource("../images/picture.gif"));
em.setWidth("200px");
em.setType(Embedded.TYPE_IMAGE);
vLayout.setComponentAlignment(em, Alignment.MIDDLE_CENTER);
vLayout.setExpandRatio(em, 1);
Is it possible to draw on that embedded picture? Or is it possible to set my "picture.gif" as a background image and put Labels on it?
Thank you for your help!
Greetings
I'm not really sure what you mean by "draw", but you could use HTML5 Canvas to do whatever graphics you want with http://vaadin.com/directory#addon/canvaswidget. Not all browsers support it, though.
An alternative would be to use something like CssLayout and some CSS to overlay text over an image, if text is all you need.
Sorry, i meant "paint"!
Yes, i just want some text over my image.
I'll try it with CssLayout.
Thank you for your answer!