This class contains a method for centering windows and frames on the current screen. The code is freeware. Feel free to modify or reuse it in any way.