| |
使用水平分割面板 |
|
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.HorizontalSplitPanel;
public class GWTClient implements EntryPoint{
public void onModuleLoad() {
HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
hSplit.setLeftWidget(new HTML("..."));
hSplit.setRightWidget(new HTML(
"This is some text to make the right side of this " +
"splitter look a bit more interesting... " +
"This is some text to make the right side of this " +
"splitter look a bit more interesting... " +
"This is some text to make the right side of this " +
"splitter look a bit more interesting... " +
"This is some text to make the right side of this " +
"splitter look a bit more interesting... "));
hSplit.setSize("100%", "450px");
RootPanel.get().add(hSplit);
}
}
|
|
GWT-horizontalSplitPanel.zip( 2 k) |
Related examples in the same category |
|