FlowPanel is a div, and Label is a div but with text in there.   So
you could do...

FlowPanel wrapper = new FlowPanel();
wrapper.add(new Label("Something"));
wrapper.add(new Label("Something2"));

but what I think you want is more like...

FlowPanel something1 = new FlowPanel();
FlowPanel something2 = new FlowPanel();

FlowPanel wrapper = new FlowPanel();
wrapper.add(something1);
wrapper.add(something2);

On Mar 27, 3:03 pm, JohnJ <[email protected]> wrote:
> What is the GWT way doing the following?
>
> <div>
>     <div>Something</div>
>     <div>Something2</div>
> </div>
>
> I don't want to create a HorizontalPanel, b/c i don't want tables. I
> can create a SimplePanel but then simple panel only takes one widget.
>
> I've tried the HTMLPanel and it will create the inner div's as
> siblings but what I need is inner <div>'s to be Widget not Element
> objects.
>
> It just seems like there should be a way to add more than one thing to
> a SimplePanel or have another panel that uses a <DIV> as the parent
> structure and allows you to add
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to