我正在尝试从MenuBar替换DockLayoutPanel的中心部分的内容。MenuBar将位于北部,但“内容”(表单、报表等)将位于中心。我想我可以通过从RootPanel (索引为0,因为这是唯一直接连接到它的小部件)中抓取整个中心,然后以某种方式删除当前的DockLayoutPanel内容并插入新的内容。from the RootPanel (it's the only widget, should be DockLayoutPanel</em
dockLayoutPanel = new DockLayoutPanel(Unit.EM); dockLayoutPanel.getElement().getStyle().setProperty("border", "solid lightblue 4px");// Add text all around
我不想用DockLayoutPanel创建一个简单的页面,我不知道为什么面板中的主子页面不居中,有人能帮我吗?public class Spr implements EntryPoint { DockLayoutPanel panel= new DockLayoutPanel(Unit.EM); panel.add(new HTML