2 issues that I can see; you shouldn’t call addComponent() with a Window, call addWindow instead. The second one is that in the Window constructor, you are trying to add the Window to the Window itself, which doesn’t work. so, instead of
new ClientView();
you should do
getWindow().addWindow(new ClientView());
for Vaadin 6 and
getUI().addWindow(new ClientView());
in Vaadin7 and remove the addComponent()-call.
When I do getWindow().addWindow(new ClientesView()); my IDE complains about “Method getWindow() in class application cannot be applied to given types.”
Do you know what I am missing ? IT’s just a test that I am doing. Here is the whole code: