Look at the API doc for the components you are adding. There are several methods that allow you to position components where you want them.