private void SHSaveButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SHSaveButtonActionPerformed
        // TODO add your handling code here:
        String name, wants;
        boolean power, legitimacy, urgency, cooperation, threat;
        String findName = (String) StakeholderList.getSelectedValue();
        //get edited fields
        name = SHNameTextArea.getText();
        wants = SHWantsTextArea.getText();
        power = SHPowerYRadioButton.isSelected();
        legitimacy = SHLegitimacyYRadioButton.isSelected();
        urgency = SHUrgencyYRadioButton.isSelected();
        cooperation = SHCooperationYRadioButton.isSelected();
        threat = SHThreatYRadioButton.isSelected();
        
        // check for valid values
        if(name.length() > 60) 
            updateStakeholderError("Stakeholder Name must be 60 characters or less!");
        else if(wants.length() > 1024)
            updateStakeholderError("Stakeholder Wants must be 1024 characters or less!");
        else {
        
                //find the stakeholder in arraylist and edit
            for (int i = 0; i < Stakeholders.size(); i++) {
                if (Stakeholders.get(i).getName().equals(findName)) {
                    Stakeholders.get(i).edit(name, wants, power, legitimacy, urgency, cooperation, threat);
                    break;
                }
            }
            //find the stakeholder name in the jlist and change
            DefaultListModel model = (DefaultListModel) StakeholderList.getModel();
            int selectedIndex = StakeholderList.getSelectedIndex();
            if (selectedIndex != -1) {
                model.setElementAt(name, selectedIndex);
                StakeholderList.setModel(model);
                InformationLabel.setText("Stakeholder " + name + " updated");
            }
        }
        
    }//GEN-LAST:event_SHSaveButtonActionPerformed