Horizontal Components Inside Form

hi , i use this
template to create my forms , now i want to align some components of the form horizontally ,
but i don’t know how to that … thanks for ur reply .

use grid layout to set horizontally components

private GridLayout ourLayout;;
ourLayout = new GridLayout(2, 3);
setLayout(ourLayout);//Form with grid layout