question: public boolean isOptionSelected ( int index ) { if ( index >= selectionPanel . getComponents ( ) . length ) { return false ; } JRadioButton radioButton = ( JRadioButton ) selectionPanel . getComponent ( index ) ; if ( radioButton . isSelected ( ) ) { return true ; } else { return false ; } }
target:  Checks, if the specified radio button is selected.