Display basic window using Ext GWT

@Override
public void onModuleLoad() {
 
// create and set up window
Window basicWindow = new Window();
basicWindow.setHeading("My ExtGWT Window");
basicWindow.setClosable(true);
basicWindow.setSize(150, 100);
 
// prepare content to show
LayoutContainer textPanel = new VerticalPanel();
textPanel.setStyleAttribute("padding", "10px");
textPanel.addText("This is my window ...");
 
// add content and show window
basicWindow.add(textPanel);
basicWindow.show();
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.