private void pilotJListSelectionChanged(ListSelectionEvent listSelectionEvent) {
        if(pilotJList.getSelectedIndex() >= 0){
            try{
                Pilot thePilot = (Pilot)pilotJList.getSelectedValue();
                currentData.setCurrentPilot(thePilot);
                firstNameField.setText((thePilot.getFirstName()));
                firstNameField.setBackground(Color.GREEN);
                firstNameField.setHorizontalAlignment(JTextField.RIGHT);

                lastNameField.setText((thePilot.getLastName()));
                lastNameField.setBackground(Color.GREEN);
                lastNameField.setHorizontalAlignment(JTextField.RIGHT);

                middleNameField.setText((thePilot.getMiddleName()));
                middleNameField.setBackground(Color.GREEN);
                middleNameField.setHorizontalAlignment(JTextField.RIGHT);

                String emergencyContact = thePilot.getEmergencyContact();
                String emergencyContactName;
                String emergencyContactPhone;
                int p = emergencyContact.indexOf('%');
                if (p >= 0) 
                {
                    emergencyContactName = emergencyContact.substring(0, p);
                    emergencyContactPhone = emergencyContact.substring(p + 1);
                }
                else
                {
                    emergencyContactName = "";
                    emergencyContactPhone = "";
                }
                emergencyContactNameField.setText(emergencyContactName);
                emergencyContactNameField.setBackground(Color.GREEN);
                emergencyContactNameField.setHorizontalAlignment(JTextField.RIGHT);
                emergencyContactPhoneField.setText(emergencyContactPhone);
                emergencyContactPhoneField.setBackground(Color.GREEN);
                emergencyContactPhoneField.setHorizontalAlignment(JTextField.RIGHT);

                /*String medInfo = thePilot.getEmergencyContact();
                String medInfoName;
                String medInfoPhone;
                int t = medInfo.indexOf('%');
                if (t >= 0) 
                {
                    medInfoName = emergencyContact.substring(0, t);
                    medInfoPhone = emergencyContact.substring(t + 1);
                }
                else
                {
                    medInfoName = "";
                    medInfoPhone = "";
                }
                medInfoNameField.setText(medInfoName);
                medInfoNameField.setBackground(Color.GREEN);
                medInfoPhoneField.setText(medInfoPhone);
                medInfoPhoneField.setBackground(Color.GREEN);*/

                flightWeightField.setText(String.valueOf((thePilot.getWeight() * UnitConversionRate.convertWeightUnitIndexToFactor(flightWeightUnitsID))));
                flightWeightField.setBackground(Color.GREEN);
                flightWeightField.setHorizontalAlignment(JTextField.RIGHT);

                if(thePilot.getCapability().equals("Student"))
                {
                    studentLabel.setEnabled(true);
                    proficientLabel.setEnabled(false);
                    advancedLabel.setEnabled(false);
                }
                if(thePilot.getCapability().equals("Proficient"))
                {
                    studentLabel.setEnabled(false);
                    proficientLabel.setEnabled(true);
                    advancedLabel.setEnabled(false);
                }
                if(thePilot.getCapability().equals("Advanced"))
                {
                    studentLabel.setEnabled(false);
                    proficientLabel.setEnabled(false);
                    advancedLabel.setEnabled(true);
                }

                if(thePilot.getPreference().equals("Mild"))
                {
                    mildLabel.setEnabled(true);
                    nominalLabel.setEnabled(false);
                    performanceLabel.setEnabled(false);
                }
                if(thePilot.getPreference().equals("Nominal"))
                {
                    mildLabel.setEnabled(false);
                    nominalLabel.setEnabled(true);
                    performanceLabel.setEnabled(false);
                }
                if(thePilot.getPreference().equals("Performance"))
                {
                    mildLabel.setEnabled(false);
                    nominalLabel.setEnabled(false);
                    performanceLabel.setEnabled(true);
                }

                optionalInfoField.setText((thePilot.getOptionalInfo()));
            } catch(Exception e) {
                //TODO respond to error
            }
            editButton.setEnabled(true);
        }
    }