AbsoluteLayout in the Panel component

Hi all,

I’m new in the Vaadin and I have trivial question. Is it possible to add the AbsoluteLayout into Panel container. I’ve tried several combination but components inside absolute layout are not visible.
The snipped code below shows one of my trying:


...
/ let's adjust the panels default layout (a VerticalLayout)
        VerticalLayout vlayout = (VerticalLayout) panel.getContent();
        AbsoluteLayout alayout = new AbsoluteLayout();
        vlayout.addComponent(alayout);

        for (int i = 0; i < 20; i++) {
        	alayout.addComponent(new Label(
                    "The quick brown fox jumps over the lazy dog."),"left: "+ 10 +"px; top: "+ 10+"px;");
        }

...

Tnx in advance.
mb

What you are looking for is
panel.setContent(absolutelayout)