blob: 69583ce3679866e9e7ad6b9a917868c76dbeb398 (
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
25
26
27
28
|
package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.ui.GridLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Panel;
import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2083 extends Application {
@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) {
Panel p = new Panel(
"This is a panel with a longer caption than it should have");
p.setWidth("100px");
p.getContent().addComponent(new Label("Contents"));
layout.addComponent(p);
}
}
|