Space out the widget within a vertical panel

2,399 views
Skip to first unread message

imgnik

unread,
May 4, 2010, 7:18:40 AM5/4/10
to Google Web Toolkit
Hi all,

How do I space out the widget within a VerticalPanel?

What is the best method? CSS? How do I do that? Thank you!

Bryan

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Stefan Bachert

unread,
May 4, 2010, 9:53:48 AM5/4/10
to Google Web Toolkit
Hi,

what do you mean with "space out"?

Stefan Bachert
http://gwtworld.de

imgnik

unread,
May 4, 2010, 1:18:22 PM5/4/10
to Google Web Toolkit
I think I should be using "item" instead of widget.

space out meaning adding a spacing to each item.

say I have three textbox inside a VerticalPanel.

I want the three textbox to have a even spacing between them.

On May 4, 9:53 pm, Stefan Bachert <stefanbach...@yahoo.de> wrote:
> Hi,
>
> what do you mean with "space out"?
>
> Stefan Bacherthttp://gwtworld.de
>
> On 4 Mai, 13:18, imgnik <ytbr...@gmail.com> wrote:
>
> > Hi all,
>
> > How do I space out the widget within a VerticalPanel?
>
> > What is the best method? CSS? How do I do that?  Thank you!
>
> > Bryan
>
> > --
> > You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.> To post to this group, send email togoogle-w...@googlegroups.com.> To unsubscribe from this group, send email togoogle-web-too...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.To post to this group, send email togoogle-w...@googlegroups.com.To unsubscribe from this group, send email togoogle-web-too...@googlegroups.com.

kelvin.huang

unread,
May 4, 2010, 2:46:50 PM5/4/10
to Google Web Toolkit
Hi,

You can add spacing property for the vertical panel, and it will add
specified space between items(widgets) inside the vertical panel.
VerticalPanel panel= new VerticalPanel();
panel.setSpacing(spacing);
or you can use CSS to set space panel.setStyleName(style). applying
same css with margin, padding or border to those innner
items( widgets).

Hope it answers your question.

Kelvin.

On May 4, 1:18 pm, imgnik <ytbr...@gmail.com> wrote:
> I think I should be using "item" instead of widget.
>
> space out meaning adding a spacing to each item.
>
> say I have three textbox inside a VerticalPanel.
>
> I want the three textbox to have a even spacing between them.
>

Reply all
Reply to author
Forward
0 new messages