blob: 3144ba3a6c396df9d8d04b6f25e41862f5e20fb7 (
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.LegacyWindow;
import com.vaadin.ui.TextArea;
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);
}
}
|