On the screen? The same way you would centre the window of any other program, calculate the top left of the window to be half the screen width minus half the window width, and half the screen height minus half the window height. (including window decoration)