Hi Everyone,
i am stuck with unexpected problem.
I have following situation, i am creating HorizontalPanel, and adding
Label widget in it.
HorizontalPanel panel = new HorizontalPanel();
Label text = new Label("Foo");
panel.add(text);
when i want to change value in label ie:
text.setText("Foo");
nothing changes. I tried following code
public void setText(String message) {
Window.alert(text.getText());
text.setText(message);
Window.alert(text.getText());
}
and when executed i see that value in text change, but it is not
displayed on interface. Am i doing something wrong, or this is
expected behaviour?
When i remove label from HorizontalPanel and insert it again, new
value is displayed.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.