Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

AbsoluteLayout not showing anything

Andrei Țăranu
7 years ago Dec 21, 2015 1:12pm
Aziz Rehman
7 years ago Dec 21, 2015 2:05pm

you need to give the initial absolute height and width to the absolute layout . the following code shows the label and layout:

Panel panel=new Panel();
          AbsoluteLayout casuta=new AbsoluteLayout();
          Label datili=new Label("Aici tre sa vie datili");
         casuta.addComponent(datili, "top:40px;left:5px");


Andrei Țăranu
7 years ago Dec 21, 2015 5:49pm