External Image Resource

Hi,

i am working with Vaadin + Navigator 7 add-on.

Now I’m trying to get an external image …

Could anybody tell me how to do this?

“FileResource” didnt work for me.

Thanks

What are you trying to do? Adding an image from an external webpage to your application? Then try this:

addComponent(new Embedded(
        "Vaadin Logo",
        new ExternalResource(
               "https://vaadin.com/vaadin-theme/images/vaadin/vaadin-logo-color.png")));

Or do you want to add an image from a theme to your view?

addComponent(new Embedded("Vaadin Logo", 
    new ThemeResource("img/vaadin-logo.png")));