Added code to center the JFrame on the screen and also set a minimum size for the window.