テキストボックスに挿入された値を表示する必要があります。このコードを作成しました:
public void onModuleLoad()
{
    TextBox textValue = new TextBox();
    textValue.getSelectedText();
    final String index = textValue.getValue().toString();
    Button button = new Button("button", new ClickHandler()
    {
        public void onClick(ClickEvent event)
        {
            Window.alert("You selected: " + index);
        }
    });
    RootPanel.get().add(textValue);
    RootPanel.get().add(button);
}
しかし、値はウィンドウに表示されません。
誰か助けてくれませんか?