Fix for correct contentPane dimension in BasicSwing