blob: afb47199bbde163c8f180630ca5f4146ac160293 (
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.LegacyApplication;
import com.vaadin.ui.AbstractOrderedLayout;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.UI.LegacyWindow;
public class Ticket2235 extends LegacyApplication {
@Override
public void init() {
LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
setMainWindow(w);
// setTheme("tests-tickets");
createUI((AbstractOrderedLayout) w.getContent());
}
private void createUI(AbstractOrderedLayout layout) {
layout.setSizeFull();
TextArea tf = new TextArea();
tf.setCaption("A text field");
tf.setSizeFull();
tf.setRows(2);
layout.addComponent(tf);
}
}
|