Monday, March 14, 2011

PopupPanel doesnt seem to work

My code is this:
AsyncCallback<String> callback = new AsyncCallback<String>() {
public void onFailure(Throwable caught) {

Window.alert("async failed!");
}

public void onSuccess(String reply) {
//Window.alert("async success! We have the network info!");

PopupPanel popup = new PopupPanel(true);
popup.setWidget(new Label("sample info lalala"));
popup.show(); //??
popup.setPopupPosition(100,100);
//Window.alert("a pop up should have appeared!");


}
};
serverCall.getUsername(callback);

The pop up panel never shows... I dont understand.. should I add it
somewhere in the RootPanel? If I do, it ceases to be a pop up.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate