final Button button=new Button("click me");
                button.addClickHandler(new ClickHandler(){
                        public void onClick(ClickEvent event) {
                                DialogBox d=new DialogBox();
                                d.setWidget(new Label("Hello"));
                                d.show();
                                d.setModal(false);
                        }
                });




Regards

On 22 Giu, 20:59, "[email protected]" <[email protected]> wrote:
> hi all, I have a question, may be about focus and event handle.
> for example, if i only have one button in my rootpanel, and i added an
> onclick event handler to that button, something like
>
>  button.addClickListener(new ClickListener() {
>                 public void onClick(final Widget sender) {
>
>       new testing_dialogbox().show();
>                 }
>         });
>
> so whenever i click on this button, the dialogbox will show up, but
> after showing one dialogbox, if i click on the button again, nothing
> happen, what i want is showing 2 dialog box.
>
> i am new to GWT, can anyone help??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to