public String getSelectedName (){
        if (radioButton1.isSelected()) return radioButton1.getText();
        if (radioButton2.isSelected()) return radioButton2.getText();
        if (radioButton3.isSelected()) return radioButton3.getText();
        if (radioButton4.isSelected()) return radioButton4.getText();
        if (radioButton5.isSelected()) return radioButton5.getText();
        return null;
    }