If you are asking about how to position components in the GUI, look at the layout managers to see which one will do what you want:
Lesson: Laying Out Components Within a Container (The Java™...