You have to extend Composite instead of EntryPoint and initialize your
widgets in the constructor.
Simple example:
public class SimpleButtons extends Composite{
public SimpleButtons(){
final VerticalPanel panel = new VerticalPanel();
initWidget(panel);
final Button button = new Button("Click me!");
panel.add(button);
}
}
Go to the GWT project page: http://code.google.com/webtoolkit/ and
read the Getting Started guide.
Isac.
On 24 jul, 07:07, Baskar <[email protected]> wrote:
> I am new to GWT RPC application. I have downloaded the GWT plugin for
> eclipse and did a sample GWT java product and defined a module which
> contains the following three screens:
> 1, Login Screen
> 2, Main Screen, which contains menu bar and tool bar options and
> 3, A master screen, ie., Item Master, which is a Composite screen
>
> I have looked the demos on the following
> webpage:http://www.gwt-ext.com/demo/#buttons
>
> I took the "SimpleButtons" source and trying to add in my project as a
> Composite. It's presently as an EntryPoint object, but I have already
> an entry point in my application. I need to add as a Composite and
> also need to invoke from the Main Screen based on the appropriate menu
> selection.
>
> Any can help providing a snippet of code or relevant documentation
> link?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---