Use StackPanel
package com.java2s.gwt.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ScrollListener;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.StackPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.RootPanel;
public class GWTClient implements EntryPoint{
public void onModuleLoad() {
StackPanel sPanel = new StackPanel();
sPanel.add(new Label("1"), "StackPanel 1");
sPanel.add(new Label("2"), "StackPanel 2");
sPanel.add(new Label("3"), "StackPanel 3");
sPanel.setStyleName("panel sPanel");
RootPanel.get().add(sPanel);
}
}
GWT-stackPanel.zip( 2 k)Related examples in the same category