public boolean isSelected(){
  for (  JRadioButton button : buttonMap.values()) {
    if (button.isSelected()) {
      return true;
    }
  }
  return false;
}

public boolean isSelected ( ) { for ( JRadioButton button : buttonMap . values ( ) ) { if ( button . isSelected ( ) ) { return true ; } } return false ; }
are any of the modes selected ?
