Search Results

Search found 1 results on 1 pages for 'user323295'.

Page 1/1 | 1 

  • How do I wrap a very long line of text in a GWT label?

    - by user323295
    This is an extract of my code at the moment: VerticalPanel mainPanel = new VerticalPanel(); RootPanel.get("messages").add(mainPanel); HorizontalPanel tempPanel = new HorizontalPanel(); tempPanel.setSize("100px", "200px"); Label content = new Label("AAAveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongtextZZZ"); content.setWidth("50px"); content.setWordWrap(true); tempPanel.add(content); mainPanel.add(tempPanel); The label displays but it does not wrap. If I insert a space it seems that word wrap works, but I guess I want character wrap. Any ideas? I do not want a horizontal scrollbar.

    Read the article

1