Anyone? Please help if you're able.
Thanks

On Jul 16, 7:44 pm, stymie <[email protected]> wrote:
> The following code does not work, what am I doing wrong?I have an
> array of buttons named myButtons.
> Thanks
>
> for(int i=0;i<2;i++){
>                         myButtons[i].addClickHandler(new ClickHandler(){
>                                 @Override
>                                 public void onClick(ClickEvent event) {
>
>                                         
> if(event.getSource().equals(clickMeButton))
>                                         {
>                                                 Window.alert("works");
>                                         }
>                                         
> if(event.getSource().equals(clickMe2)){
>                                                 Window.alert("works2");
>                                         }
>                                 }
>                         });
>                         }
--~--~---------~--~----~------------~-------~--~----~
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