PDA

View Full Version : Updating top component in content panel



gorilla076
10 Jun 2010, 12:59 PM
Is there any way to add items to a top component in a content panel.

I've tried something very similar to this and the buttons do not display.




protected HorizontalPanel panel = new HorizontalPanel();

protected void initTopComponent()
{
panel.setTopComponent(panel);
}

protected void addButtonToTopComponent()
{
panel.add(new Button("foo"))
}



Alternately, if there were a way to replace a top component, that would also suffice.