State of the app is now correctly saved and reloaded
(remember to use setPeferredSize() and not setsize()...)