You need to do this ...
if(jRadioMale.isSelected() || jRadioFemale.isSelected()){
//Continue to next
}
else{
JOptionPane.showConfirmDialog(rootPane, "Please Select Male or Female", "", JOptionPane.OK_CANCEL_OPTION);
}
Your code will always show the alert because Your condition returns true if any one of the button is not selected