public DialogCheckBox addDialogCheckBox(String description,String labelText,boolean initialState){
  String[] args=new String[4];
  args[0]="checkbox";
  args[1]=description;
  args[2]=labelText;
  args[3]=Boolean.toString(initialState);
  DialogCheckBox dcb=new DialogCheckBox();
  dcb.setArgs(args);
  components.add(dcb);
  mainPanel.add(dcb);
  return dcb;
}

public DialogCheckBox addDialogCheckBox ( String description , String labelText , boolean initialState ) { String [ ] args = new String [ 4 ] ; args [ 0 ] = "checkbox" ; args [ 1 ] = description ; args [ 2 ] = labelText ; args [ 3 ] = Boolean . toString ( initialState ) ; DialogCheckBox dcb = new DialogCheckBox ( ) ; dcb . setArgs ( args ) ; components . add ( dcb ) ; mainPanel . add ( dcb ) ; return dcb ; }
adds a checkbox to the dialog
