blob: 4cce9188b78066d3a90acd50385e65395ad45bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.vaadin.tests.tickets;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Panel;
import com.vaadin.ui.VerticalLayout;
public class Ticket1868 extends com.vaadin.server.LegacyApplication {
@Override
public void init() {
setMainWindow(new LegacyWindow("#1868"));
VerticalLayout pl = new VerticalLayout();
pl.setMargin(true);
Panel p = new Panel(
"This is a really long caption for the panel, too long in fact!",
pl);
p.setWidth("300px");
p.setHeight("300px");
getMainWindow().addComponent(p);
}
}
|