Hi,
I think I had a similar problem,
I think what you may be doing is adding a click listener to the button
to open a dialog box, then once you have closed the dialog box, you
may be forgetting to remove the click listener from the button.
e.g.
Button clickButton = new Button("Open Sesame!");
clickButton.addClickListener(new ClickListener() {
public void onClick(Widget _sender) {
DialogBox newDialog = new Dialog();
...
newDialog.center();
newDialog.show();
}
});
Then the next time your code runs you may be adding another click
listener, forgetting that the first click listener is already there,
which then reopens the old dialog box and the new one with one click
of the button.
So you need to store a handle to each ClickListener and remove it from
the button - clickButton.removeClickListener(ClickListener) once you
have closed the DialogBox.
I'm kind of reading through the lines of your question, so I may be
completely mistaken, if so sorry for all this gumpf.
Cheers
Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---