I'm creating a GUI and I had the same problem. Your approach worked quite well for the textboxes, but what do I have to do with radiobuttons after the textboxes?
Between the textboxes and the buttons is an invisible radiobutton, so none of them is selected. Could you give me a hint how to solve that case? Couldn't find a workaround yet..
Thanks, Rachel