Sorry, I didn't read that properly.
If you want to post some code, that would be good.
This works OK, though...
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.BorderStyle;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
public class BasicProject implements EntryPoint
{
public void onModuleLoad()
{
DockPanel d = new DockPanel();
RootPanel.get().add(d);
d.setSize("400px", "400px");
d.getElement().getStyle().setMargin(50, Unit.PX);
d.getElement().getStyle().setBorderColor("red");
d.getElement().getStyle().setBorderWidth(1, Unit.PX);
d.getElement().getStyle().setBorderStyle(BorderStyle.DOTTED);
HorizontalSplitPanel p = new HorizontalSplitPanel();
d.add(p, DockPanel.CENTER);
p.setSize("100%", "100%");
Label left = new Label("Left");
left.getElement().getStyle().setBackgroundColor("cyan");
p.setLeftWidget(left);
Label right = new Label("Left");
right.getElement().getStyle().setBackgroundColor("yellow");
p.setRightWidget(right);
}
}
Ian
http://examples.roughian.com
On 22 March 2010 21:39, TM <[email protected]> wrote:
> I'm trying to keep it simple and avoid any extensions like gwt-ext
> unless I have to. I thought this seemed like a fairly straightforward
> use of HorizontalSplitPanel?
>
> BTW Ian, I have found your site very useful lately, thanks!
>
>
> On Mar 22, 8:45 pm, Ian Bambury <[email protected]> wrote:
> > You might be better off in a gwt-ext forum
> >
> > Ian
> >
> > http://examples.roughian.com
> >
> > On 22 March 2010 19:39, TM <[email protected]> wrote:
> >
> > > BorderLayout
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://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 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.