This post originated from an RSS feed registered with Java Buzz
by Peter Karich.
Original Post: Scaled Linked Image in Vaadin
Feed Title: Java and more ...
Feed URL: https://karussell.wordpress.com/category/java/feed/
Feed Description: Just another weblog. Its about my developer experiences with Java in general. In detail I will blog about NetBeans, Eclipse, Design Patterns, News, Web Frameworks and other tools. My focus will be open source tools, which make the life of a Java developer easier.
In vaadin you can easily embed images either via: Embedded logoEmbed = new Embedded("yourText",new ThemeResource("../yourtheme/img/logo.png")); logoEmbed.setType(Embedded.TYPE_IMAGE); or if you need a linked image do the following: Link iconLink = new Link(); iconLink.setIcon(new ExternalResource(urlAsString)); iconLink.setResource(new ThemeResource("../yourtheme/img/logo.png")); But how can you scale that external image? This is simple if you let the browser do it for you. [...]