Time for action – render web content
Let's see that in action.
Create a new Vaadin project. We are using resources as project name.
Implement your
UI
class:public class ResourcesUI extends UI { protected void init(VaadinRequest request) { final TabSheet sheets = new TabSheet(); sheets.setSizeFull(); setContent(sheets); Image imageFromTheme = new Image(null, new ThemeResource( "common/icons/error.png")); imageFromTheme.setSizeFull(); Image imageFromClasspath = new Image(null, new ClassResource( "globe.png")); imageFromClasspath.setSizeFull(); BrowserFrame frameFromURL = new BrowserFrame(null, new ExternalResource("http://alejandrodu.com")); frameFromURL.setSizeFull(); BrowserFrame frameFromFileSystem = new BrowserFrame(null, new FileResource(new File("C:/readme.txt"))); StreamSource mySource = new StreamSource() { public InputStream getStream() { return new InputStream() { private int...