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!