package com.vaadin.tests.tickets;
import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
public class Ticket2083 extends LegacyApplication {
@Override
public void init() {
LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
setMainWindow(w);
// setTheme("tests-tickets");
GridLayout layout = new GridLayout(10, 10);
w.setContent(layout);
createUI(layout);
}
private void createUI(GridLayout layout) {
VerticalLayout pl = new VerticalLayout();
pl.setMargin(true);
Panel p = new Panel(
"This is a panel with a longer caption than it should have", pl);
p.setWidth("100px");
pl.addComponent(new Label("Contents"));
layout.addComponent(p);
}
}