package com.vaadin.tests.tickets; import java.io.ByteArrayInputStream; import java.io.IOException; import com.vaadin.server.LegacyApplication; import com.vaadin.ui.Button; import com.vaadin.ui.CustomLayout; import com.vaadin.ui.LegacyWindow; public class Ticket2339 extends LegacyApplication { @Override public void init() { final LegacyWindow mainWin = new LegacyWindow(getClass() .getSimpleName()); setMainWindow(mainWin); try { CustomLayout cl = new CustomLayout( new ByteArrayInputStream( "
" .getBytes())); Button button = new Button("b"); button.setSizeFull(); cl.addComponent(button, "b"); mainWin.addComponent(cl); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }