Use vertical panel : VerticalPanel « GWT « Java






Use vertical panel


package com.java2s.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.HTML;

public class GWTClient implements EntryPoint {

  public void onModuleLoad() {
    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(8);
    vp.add(new HTML("Normal text box:"));
    vp.add(new HTML("Password text box:"));
    vp.add(new HTML("Text area:"));

    RootPanel.get().add(vp);
  }
}


           
       








GWT-verticalPanel.zip( 2 k)

Related examples in the same category