Vaadin 6 to 7 migration getWindow()


what is the eqquivalent code we need to use for vaadin 7 . ?

Window component is removed . i am trying for vaadin 6 to 7 migration .

I hope you’re trying to remove a sub-window, not an application window, as was possible in Vaadin 6.

To remove a sub-window, I think it should work with getUI().removeWindow(getWindow()). Or, UI.getCurrent().removeWindow(getWindow()). Well, using getWindow() assumes that you’re working in a location where you can use that.