Work with FlowPanel : FlowPanel « GWT « Java






Work with FlowPanel


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.HTML;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.CheckBox;

public class GWTClient implements EntryPoint{
  public void onModuleLoad() {

    FlowPanel flow = new FlowPanel();
    for (int i = 0; i < 8; ++i) {
      flow.add(new CheckBox("Flow " + i));
    }


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



           
       








GWT-flowPanel.zip( 2 k)

Related examples in the same category