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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
problem in getContent().setHeight()
hi
I create a new vaadin project ,but the content of the layout is not display. I found the solution in the forum.
I did the solution:
mainWindow.getContent().setHeight("500px");
but is doesn't work.
please help me.
thanks
I think you should show some more code.
Do you add components to the main window ?
André
I installed vaadin in eclipse. I made a new vaadin project in Liferay. If I don't use Liferay I can see "Hello Vaadin User". If I add a vaadin application, I can see the vaadin window, but the content is invisible. I can't see "Hello Vaadin User".
I use mainWindow.getContent().setHeight() , but it doesn't work.
Thank
I used : Vaadin 6.3.0
java 1.6.0
Tomcat 6.0.24
Eclipse SDK 3.5.1
this is my source :
package com.example.test1;
import com.vaadin.Application;
import com.vaadin.ui.*;
public class Test1Application extends Application {
@Override
public void init() {
Window mainWindow = new Window("Test1 Application");
mainWindow.getContent().setHeight("500px");
Label label = new Label("Hello Vaadin user");
mainWindow.addComponent(label);
setMainWindow(mainWindow);
}
}