Replaced setPreferredSize methods with getPreferredSize overrides, as per http://stackoverflow.com/a/7229519/1735524