2011-06-09 42 views
1

我想要一个弹出窗口,当他点击一个按钮时询问用户是或否的问题。创建一个弹出消息,询问GWT中是或否的问题

public void onClick(ClickEvent event){ 
    deleteUser(); 
}//this lets user to delete a certain user when they click a button, but there is no question asking if they really want to delete this user. 

我想要一个新的小的弹出窗口(如JFrame的中的Java Swing)问Are you sure you want to delete this user?YesNo按钮。

我正在开发GWT。

谢谢

回答

10

除了实施与PopupPanel的对话,我想你可以得到最好的是Window.confirm()(从com.google.gwt.user.client)。

+0

好的,哇,这很简单。谢谢! – 404Error 2011-06-09 17:16:50