2013-10-10 41 views
0

Lokk在此代碼;如何獲得SplitLayoutPanel的中央控件?

SplitLayoutPanel splitLayoutPanel=new SplitLayoutPanel(); 
splitLayoutPanel.addWest(new Label("west"), 200); 
splitLayoutPanel.add(new Label("center")); 

然後

Label myWestLb= (Label)splitLayoutPanel.getWidget(0); //this code is ok, no problem 

Label myCentralLb= (Label)splitLayoutPanel.getWidget(1); //this code got error 

有誰知道如何獲取加入到SplitLayoutPanel中心的工具?

回答

相關問題