Positioning Window in Vaadin

Hi all,

I need to set position for child window in my application.
Like,

 Window subWindow = new Window("My Application");
       
            subWindow.setPositionX("");
	subWindow.setPositionY("");

 with this i placed my window in required position.

But once i setModal to the window, then it takes the center position defaultly.

         subWindow.setModal(true);
         myApplication.getMainWindow().addWindow(subWindow);

Can any one help how to position the window, with its setModal(true).

Thanks in advance for your kind reply.

regards,
Aravind

#setModal as a side-effect calls Window#center() and setPositionX/Y calls getState().center = false. So just call first setModal and then setPositionX/Y

Thanks. It works great.