BoxLayout is a Java Swing layout manager that allows multiple components to be laid out either vertically or horizontally.
GroupLayout is a Java Swing LayoutManager that hierarchically groups components in order to position them in a Container.
"Some don t take too well to added components for example grouplayout while others do better such as boxlayout"
from question "How to create a JLabel instance from Jbutton actionlistener?"
"As a concrete example this boxlayout example is better done using grouplayout illustrated here and here"
from question "Elegant way to accomplish realization in Java Swing?"