GWTでメッセージを表示するには、Windowクラス(com.google.gwt.user.client.Window)のメソッドを用います。
サンプルプログラム
boolean ok = Window.confirm("Windowクラスのメッセージ機能を紹介します"); if (ok) { Window.alert("これが「alert」です。先ほどのものが「confirm」です"); String string = Window.prompt("「prompt」の紹介です", "ここへ文字を入力します"); Window.alert("入力した文字は「" + string + "」です"); }参考URL(APIのページ)
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Window.html