You can set only one widget in the <g:center> section of your
DockLayoutPanel.
Add your second panel in another section (e.g. <g:south>), or create a
composite wich wraps panel1 and panel2.

On 20 sep, 13:38, samuel <bhaskarsamue...@gmail.com> wrote:
> I got the problem when I compile my project. I write my error .xml
> file.
>
> <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
>         xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>         <g:DockLayoutPanel ui:field="dock">
>                 <g:north size="25">
>                         <g:FlowPanel>
>                                 <g:Button ui:field="save">Save</
> g:Button>
>                         </g:FlowPanel>
>                 </g:north>
>                 <g:center>
>                         <g:VerticalPanel ui:field="panel1">
>                                 <g:Button ui:field="button1">print</
> g:Button>
>                                 <g:Button ui:field="button2">clear</
> g:Button>
>                         </g:VerticalPanel>
>                   <g:VerticalPanel ui:field="panel2">
>                                 <g:TextArea ui:field="textArea" />
>                         </g:VerticalPanel>
>                 </g:center>
>         </g:DockLayoutPanel>
> </ui:UiBinder>

-- 
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