Hi Shi!
create a constructor for your MenuHome and move the code from the Composite()-
Method into this constructor.
Extending from Composite is correct! ^^
Don't know why you use a method for doing this... ;)
...
public MenuHome() {
VerticalPanel vPanel = new VerticalPanel();
// Do You really want to set the title (title = tooltip)?
// To see something create a Label with Text an add this to the vPanel
// Example
// Label label = new Label("Good!");
// vPanel.add(label);
vPanel.setTitle("GOOD!");
vPanel.setWidth("100%");
vPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
initWidget(vPanel);
// Don't use this here (you do this on your entrypoint alright)
RootPanel.get().add(vPanel);
}
I hope i could help you... ;)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---