JFrame uses a BorderLayout by default. Link below:
Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing)

db