2011-06-09 39 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