blob: 7a5c1163b5d7ec88f4933fcd3b3c9bfe29a49d51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.vaadin.tests.tickets;
import com.vaadin.Application;
import com.vaadin.server.SystemError;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
public class Ticket1663 extends com.vaadin.Application {
@Override
public void init() {
LegacyWindow main = new LegacyWindow("#1663");
setMainWindow(main);
TextField tf = new TextField("First name");
tf.setDescription("The first name is used for the administration user interfaces only.");
tf.setComponentError(new SystemError(
"You must enter only one first name."));
main.addComponent(tf);
}
}
|