blob: 1ef16afe9579d94e801a695ac97042a597f5bb03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.vaadin.tests.tickets;
import com.vaadin.server.SystemError;
import com.vaadin.ui.UI.LegacyWindow;
import com.vaadin.ui.TextField;
public class Ticket1663 extends com.vaadin.Application.LegacyApplication {
@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);
}
}
|