PDA

View Full Version : Replace ContentPanel



niemayd
16 Jan 2009, 1:23 AM
Hello everybody!

I want to replace an existing ContentPanel with another ContentPanel. The Panel ist the only element of the LayoutContainer. But i can't see the new panel after executing the following code:



layoutP.removeAll();
layoutP.add(panel);
Do I have to call an update or rebuild function?

Thanks!

niemayd
16 Jan 2009, 2:15 AM
Solved the Problem myself :-)

You have to call layoutP.layout() to rebuild that container.