blob: 826956049a061f10040870bcc2e696de40d09e7c (
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
29
30
|
package com.vaadin.tests.tickets;
import com.vaadin.LegacyApplication;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
public class Ticket2325 extends LegacyApplication {
@Override
public void init() {
LegacyWindow main = new LegacyWindow("Testing....");
setMainWindow(main);
final VerticalLayout lo = new VerticalLayout();
lo.setSizeUndefined();
lo.setWidth("100%");
TextArea tf = new TextArea();
tf.setValue("The textfield should fill the window."
+ "\n - Try to resize window\n - Try to push REdo button");
tf.setRows(10);
tf.setWidth("100%");
lo.addComponent(tf);
Window subWin = new Window(
"This window should initially be as wide as the caption", lo);
main.addWindow(subWin);
// subWin.setWidth("500px");
}
}
|