@@ -0,0 +1,755 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.terminal.UserError;%0Aimport com.itmill.toolkit.ui.Button;%0Aimport com.itmill.toolkit.ui.TextField;%0Aimport com.itmill.toolkit.ui.Window;%0Aimport com.itmill.toolkit.ui.Button.ClickEvent;%0A%0Apublic class Ticket2181 extends Application implements Button.ClickListener %7B%0A%0A    Window main = new Window(%22#2181 test%22);%0A    TextField tf = new TextField(%22Test field%22);%0A    Button b = new Button(%22Press to break down%22, this);%0A%0A    public void init() %7B%0A        setMainWindow(main);%0A        main.addComponent(tf);%0A        main.addComponent(b);%0A    %7D%0A%0A    public void buttonClick(ClickEvent event) %7B%0A        tf.setComponentError(new UserError(%22Noooo... %22));%0A    %7D%0A%7D%0A

Test for #2181