Positioning sub window at center irrespective of screen size.

Hi…

I need to make the sub window appear at the center of screen… Positioning is possible with setPositionx() and y (thaat cant be applicable with different scrren)
But I want to make the sub window appear center irrespective of the monitor screen.

Thank You.

You can use Window.center() for that.

Thank you…

Its working, the popup appears at center, but some buttons fails the alignment in the main layout due to window.center()