You must pass the constraints you've created/modified to parent component when you add a child. See
How to Use GridBagLayout (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out...