Look at how the layout manager handles components added to the container it is managing.
You need to tell some layout managers where to put the components that are added. Other layout managers...