Window as CustomComponent

Hi,

i want to create a CustomComponent with Closebutton.
I saw, that vaadin already has the Window class, but it can’t be used as customcomponent, because you have to add it via three addWindow method.

Is there a way to use the window like a customcomponent and just add it to the layout ?

It can’t be used. Vaadin client-side will render it as an absolute positioned overlay. I haven’t tried, but I’m pretty sure you even get some exception if you try to add Window to a ComponentContainer.

Yes, it can’t be used in “normal” way. If you want to add a Window via the addComponent method you get an Exception.

But i need a “windowlike” Component, the only way then is a own CustomComponent, which “simulates” a window,
but then i figure out the design, with css and so on.