the populateTemplate method seems to work well if you add a new question below (relative to the window) your focus but if you add a new question above your focus, it seems that the focus jumps to the question above you. I think this may have to do with gridbaglayout code. Probably when you call invalidate() it gives focus to the component that used to be in the cell you were typing.
Logged In: YES
user_id=1313948
Originator: YES
actually, what seems to be happening is that focus is shifting to the question right below where you type. I donno what is causing this but it still may be GBL.