if ( this.checkboxes != null ) { for ( int loop = 0; loop < this.checkboxes.length; loop++ ) { if ( this.checkboxes[loop].getState() == true ) { retval = loop; break; } }
int[] choices = super.getChoices(); if ( null != choices && choices.length > 0 ) {   retval = choices[0];
    public int getChoice() {        int retval = -1;        // Which checkbox was selected?        // Handle choiceless dialogs.        if ( this.checkboxes != null ) {            for ( int loop = 0; loop < this.checkboxes.length; loop++ ) {                if ( this.checkboxes[loop].getState() == true ) {                    retval = loop;                    break;                }            }        }        return retval;    } // End public int getChoice()