diff options
Diffstat (limited to 'vaadin-app/src/ch/asynk')
-rw-r--r-- | vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java index 455cbfb..5c35f6c 100644 --- a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java +++ b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java @@ -3,6 +3,7 @@ package ch.asynk.helloworld; import java.util.Date; import com.vaadin.Application; +import com.vaadin.terminal.UserError; import com.vaadin.ui.Window; import com.vaadin.ui.Label; import com.vaadin.ui.Button; @@ -23,6 +24,7 @@ public class HelloWorldApp extends Application { @Override public void buttonClick(ClickEvent event) { mainWindow.showNotification("The time is " + new Date()); + event.getButton().setComponentError( new UserError("Stop pressing this button !!") ); } })); // |