If you want the components in a vertical layout, you might consider using BoxLayout. See also, How To Use BoxLayout.