try this:

  public void onModuleLoad() {

    FlowPanel flow = new FlowPanel();
    flow.setWidth("100%");
    for(int i = 0 ; i < 10 ; i++) {
        Label l = new Label("Label"+i);
        l.getElement().getStyle().setProperty("display", "inline");
       flow.add(l);
    }

    RootPanel.get().add(flow);
   }

On Fri, Aug 21, 2009 at 11:31 AM, Richard <richard.fa...@gmail.com> wrote:

>
> Hi all,
>
>  I'm new to GWT and I've tryed to display some labels in a flow
> panel. Unfortunately they are displayed as in a VerticalPanel. Where
> am I wrong ? (gwt 1.7, eclipse 3.3, App engine 1.2.2)
>
> ====Module====
> public void onModuleLoad() {
>   FlowPanel flow = new FlowPanel();
>   flow.setWidth("100%");
>   for(int i = 0 ; i < 10 ; i++) {
>      flow.add(new Label("Label"+i));
>   }
>
>   RootPanel.get().add(flow);
> }
>
>
> ===Host page===
> <body>
>    <!-- OPTIONAL: include this if you want history support -->
>    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
> style="position:absolute;width:0;height:0;border:0"></iframe>
>  </body>
>
>
> ====Result====
> Label0
> Label1
> Label2
> Label3
> Label4
> Label5
> Label6
> Label7
> Label8
> Label9
>
> ===Result expected====
> Label0Label1Label2Label3Label4Label5Label6Label7Label8Label9
>
>
> 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 google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to