Our Java Entry Code

public class Sample implements EntryPoint {
public void onModuleLoad() {
Label title = new Label(“This of Page”);
title.setStyleName(“title”);

Label message = new Label(“message goes here”);
message.setStyleName(“message”);

RootPanel.get().add(title);
RootPanel.get().add(message);
}
}

o Since this is the main code where GWT will load
our application, we have to implment the EntryPoint
interface. It has the method: onModuleLoad().
o Here we define two Labe widgets for the title and message
o RootPanel, is the base panel where all other widgets
must are added. User RootPanel.get() to get the root
panel instance.
o Once we have the root panel, we add the title and message
o This will add them to the DOM of the html page

Video

topuparrow