question: public boolean isOptionChecked ( int index ) { if ( index >= checkboxPanel . getComponents ( ) . length ) { return false ; } JCheckBox checkbox = ( JCheckBox ) checkboxPanel . getComponent ( index ) ; if ( checkbox . isSelected ( ) ) { return true ; } else { return false ; } }
target:  Checks, if the specified check box is selected.