Thanks alot, it really works, but i got another qestion now, when i open twp dialogbox, it couse a overlap problem, is any event listener can detect whenever i click on any dialogbox, that particular dialogbox will come to the front .
On 6月23日, 上午6时25分, Enea <[email protected]> wrote: > final Button button=new Button("click me"); > button.addClickHandler(new ClickHandler(){ > public void onClick(ClickEvent event) { > DialogBoxd=newDialogBox(); > 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 aboutfocusand 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, thedialogboxwill show up, but > > after showing onedialogbox, 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 -~----------~----~----~----~------~----~------~--~---
