View Full Version : How about hiding RadioGroup.setGroupName()

Louis Huh
19 Sep 2011, 10:32 PM
actually 'groupName' is the name attribute of input tag.

<input type=radio name='var' value='A'>..</input>
<input type=radio name='var' value='D'>..</input>

We can use RadioGroup(String name) constructor for giving groupName.

I made 'SmallPanel' with 'new RadioGroup("var");'

so far is ok.

when I create 'SmallPanel' instance twice.

They are conflict each other.

I think groupName should be generated automatically for instances.

Colin Alworth
20 Sep 2011, 8:10 AM
Try the other RadioGroup constructor, which creates a generated name automatically.

RadioGroup group = new RadioGroup();