Hi Actually I need to use the FlowPanel, I need to list my widgets in a flow way horizontally, the vertical panels that I'm trying to add them to the flow panel has a width also a height, but it didn't work, also I tried to put each vertical panel in a horizontal panel but I got the same result, the flow panel list them vertically, also I tried to use a simple panel instead of vertical panel then add them to the flow panel but the flow panel list them vertically.
this is a sample code: public class MyProject implements EntryPoint { private final FlowPanel fp = new FlowPanel(); private final SimplePanel vp1 = new SimplePanel(); private final SimplePanel vp2 = new SimplePanel(); private final SimplePanel vp3 = new SimplePanel(); public void onModuleLoad() { fp.setStyleName("fpTest"); vp1.setStyleName("vpTest"); vp2.setStyleName("vpTest"); vp3.setStyleName("vpTest"); fp.setWidth("500px"); fp.setHeight("500px"); vp1.setWidth("74px"); vp1.setHeight("80px"); vp2.setWidth("74px"); vp2.setHeight("80px"); vp3.setWidth("74px"); vp3.setHeight("80px"); fp.add(vp1); fp.add(vp2); fp.add(vp3); RootPanel.get("divId").add(fp); } } Note: the styles 'fpTest' and 'vpTest' contains just a background color, and if you try to use a vertical panel instead of simple panel, the same result which is list them vertically. thanks a lot On Wed, Sep 9, 2009 at 7:18 AM, Saeed Zarinfam <zarinfa...@gmail.com> wrote: > > Hi > You must add your vertical panel in a horizontal panel or decrease > vertical panel width. > > > -- Best Regards Rami --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---