I\'m trying to create a window for an application. The size of the window is determined by getting the bounds of the primary screen. In order to do this I have created two class