Use a GridLayout for the container holding the column of components. Initialize it with
int vGap = 5;
new GridLayout(0, 1, 0, vGap)
which stands for 1 column, variable number of rows. The vGap parameter must be an int that represents the vertical gap between components.