void addRadioButton(String key,RadioButton rb,String value){
  if (rb.isSelected()) {
    defaultCheckedButtons.addElement(rb);
  }
 else {
    defaultUncheckedButtons.addElement(rb);
  }
  if (key == null) {
    return;
  }
  Hashtable internal=(Hashtable)comps.get(key);
  ButtonGroup group=null;
  if (internal == null) {
    internal=new Hashtable();
    comps.put(key,internal);
    group=new ButtonGroup();
    buttonGroups.put(key,group);
  }
 else {
    group=(ButtonGroup)buttonGroups.get(key);
  }
  group.add(rb);
  internal.put(rb,value);
}

void addRadioButton ( String key , RadioButton rb , String value ) { if ( rb . isSelected ( ) ) { defaultCheckedButtons . addElement ( rb ) ; } else { defaultUncheckedButtons . addElement ( rb ) ; } if ( key == null ) { return ; } Hashtable internal = ( Hashtable ) comps . get ( key ) ; ButtonGroup group = null ; if ( internal == null ) { internal = new Hashtable ( ) ; comps . put ( key , internal ) ; group = new ButtonGroup ( ) ; buttonGroups . put ( key , group ) ; } else { group = ( ButtonGroup ) buttonGroups . get ( key ) ; } group . add ( rb ) ; internal . put ( rb , value ) ; }
adds the specified radiobutton to the form . note that unlike adding to a codename one form here the components are added logically only to query them for their value on submit .
