Loading...
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
TUTORIAL

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

AbsoluteLayout not showing anything

Andrei Țăranu
6 years ago Dec 21, 2015 1:12pm
Aziz Rehman
6 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();
          casuta.setHeight("300px");
          casuta.setWidth("500px");
          //casuta.setSizeFull();
          Label datili=new Label("Aici tre sa vie datili");
         casuta.addComponent(datili, "top:40px;left:5px");
                 panel.setContent(casuta);
                  tot.addComponent(panel);

 

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