How to set focus on groups?

is there any way to set focus on a group? i read something like setTabindex(p, 1000)