To manage where Components will appear in the user interface, use a LayoutManager. See the following link:
A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With JFC/Swing >...