Why not just use a horizontalpanel with two buttons next to eachother?
HorizontalPanel buttongroup = new HorizontalPanel();
buttongroup.add(buttonOne);
buttongroup.add(buttonTwo);
If you want to make this into its own class, youd do;
public class myButtonGroup extends HorizontalPanel {
Button buttonOne = new Button("test 1");
Button buttonTwo = new Button("test 2");
public myButtonGroup() {
this.add(buttonOne)
this.add(buttonTwo)
}
}
Preferably in its own file.
Then you can use myButtonGroup whenever you want these two buttons.
eg.
myButtonGroup testgroup = new myButtonGroup()
On Aug 28, 10:42 am, 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
-~----------~----~----~----~------~----~------~--~---