klyn.gui.windows.Window.centerIn
method
public native centerIn(container as Container = null) as Void
Description

Centers the window on its screen.

On Windows, the native backend uses the current monitor work area so a multi-monitor setup does not force new windows onto the primary display.

win.size = (900, 600)
win.centerIn()