You mean something like this?

   public class TwoButtonPanel extends DockPanel {

      public TwoButtonPanel() {
         Button button1 = new Button("Button 1");
         Button button2 = new Button("Button 2");
         button1.addClickHandler(new ClickHandler(){
            public void onClick(ClickEvent event) {
               button1clicked();
            }
         });
         button2.addClickHandler(new ClickHandler(){
            public void onClick(ClickEvent event) {
               button2clicked();
            }
         });
         add(button1);
         add(button2);
      }

      private void button1clicked() {
      }

      private void button2clicked() {
      }
   }



On 28 Aug., 10:42, LinuxChata <[email protected]> wrote:
> How to create own widget with two button??
>
> Thanks

--~--~---------~--~----~------------~-------~--~----~
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