Question

Lokk at this code;

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

then

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

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

Does anyone know how to get the Widget that was added into the center of SplitLayoutPanel?

Was it helpful?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top