Group Layout is a layout manager, see the tutorial here
...or try Grid Bag layout

If you still have problems, explain what it is you want to do and what problems you are having. Reading over code...