Read the JavaDoc of the RadioButton constructor you have used.

With your code you create 4 different RadioButton groups named A), B), C), 
D) and in each group only one RadioButton can be selected at a time. When 
you have two widgets you have two RadioButtons in each of the four groups 
instead of four RadioButtons in two groups.

What you want is something like:

new RadioButton("<unique group name>", "A)");
new RadioButton("<unique group name>", "B)");
new RadioButton("<unique group name>", "C)");
new RadioButton("<unique group name>", "D)");

What you use as unique group name is up to you (e.g. unique question 
identifier). Inside this unique group only on selection can be made.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/itFX8cw9znsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to