PDA

View Full Version : Fastest way to get started.



romerun
9 May 2008, 10:10 PM
Hi, I was able to run the Explorer in the beta2, it's pretty much shebang, wondering if anyone could point me to some gentle tutorials just to build a hello world form. I've found http://mygwt.net/learn/index.php?title=Tutorial:MyGWT_101, but it's not accessible right now. Thanks in advance. In the meantime I'll keep playing with the Explorer.

gslender
10 May 2008, 3:28 AM
Well, this is a snippet that displays a panel...


public void onModuleLoad() {

ContentPanel cp = new ContentPanel();
cp.setHeading("Hello World");
cp.addText("This is a sample test panel");
cp.setSize(200,300);

final Viewport vp = new Viewport();
vp.add(cp);

RootPanel.get().add(vp);
DeferredCommand.addCommand(new Command() {
public void execute() {
vp.layout();
}
});
}

romerun
10 May 2008, 6:57 AM
Thank you gslender, that's so short, I'll try it. BTW, I've found another sample, the Mail application, it's much much simpler than the Explorer.