Ported the layout code from miglayout to native swing layout managers.