Hello there,
I am trying to create a simple label,but i cannot see it on my browser.what am i missing.please help i am a starter to smartGWT and I have a licence for the Power edition. below is my code
cheers
Zolf
package com.crm.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;
public class MyCRM implements EntryPoint {
private VLayout mainLayout;
private HLayout mastheadLayout;
public void onModuleLoad() {
GWT.log("init OnLoadModule()...", null);
// get rid of scroll bars, and clear out the window's built-in margin,
// because we want to take advantage of the entire client area
//Window.enableScrolling(false);
//Window.setMargin("0px");
// initialise the main layout container
mainLayout = new VLayout();
mainLayout.setWidth100();
mainLayout.setHeight100();
// initialise the masthead layout container
mastheadLayout = new HLayout();
mastheadLayout.setHeight("58px");
mastheadLayout.setBackgroundColor("#C3D9FF");
// initialise the masthead label
Label mastheadLabel = new Label();
mastheadLabel.setContents("Masthead");
mastheadLabel.setAlign(Alignment.CENTER);
mastheadLabel.setOverflow(Overflow.HIDDEN);
// add the masthead label to the masthead layout container
mastheadLayout.addMember(mastheadLabel);
// add the masthead layout container to the main layout container
mainLayout.addMember(mastheadLayout);
// add the main layout container to GWT's root panel
RootLayoutPanel.get().add(mainLayout);
}
}
I am trying to create a simple label,but i cannot see it on my browser.what am i missing.please help i am a starter to smartGWT and I have a licence for the Power edition. below is my code
cheers
Zolf
package com.crm.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;
public class MyCRM implements EntryPoint {
private VLayout mainLayout;
private HLayout mastheadLayout;
public void onModuleLoad() {
GWT.log("init OnLoadModule()...", null);
// get rid of scroll bars, and clear out the window's built-in margin,
// because we want to take advantage of the entire client area
//Window.enableScrolling(false);
//Window.setMargin("0px");
// initialise the main layout container
mainLayout = new VLayout();
mainLayout.setWidth100();
mainLayout.setHeight100();
// initialise the masthead layout container
mastheadLayout = new HLayout();
mastheadLayout.setHeight("58px");
mastheadLayout.setBackgroundColor("#C3D9FF");
// initialise the masthead label
Label mastheadLabel = new Label();
mastheadLabel.setContents("Masthead");
mastheadLabel.setAlign(Alignment.CENTER);
mastheadLabel.setOverflow(Overflow.HIDDEN);
// add the masthead label to the masthead layout container
mastheadLayout.addMember(mastheadLabel);
// add the masthead layout container to the main layout container
mainLayout.addMember(mastheadLayout);
// add the main layout container to GWT's root panel
RootLayoutPanel.get().add(mainLayout);
}
}
Comment