Fixed (another) screen size issue in Windows.
Needed to put setResizable(false) before setPreferredSize.