private void txtA2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtA2KeyPressed
        if (evt.getKeyCode() == 10) {
            Integer aFinal = Integer.valueOf(txtA1.getText()) + Integer.valueOf(txtA2.getText());
            lblFA.setText(String.valueOf(aFinal));
            if (Integer.valueOf(lblFA.getText()) >= 28 && Integer.valueOf(lblFA.getText()) <= 40) {
                lblAFA.setText("Aprobado");
            } else if (Integer.valueOf(lblFA.getText()) < 28 && Integer.valueOf(lblFA.getText()) > 0) {
                lblAFA.setText("Reprobado");
            } else {
                txtA1.setText("");
                txtA2.setText("");
                lblFA.setText("");
                lblMensaje.setText("Los valore ingresados estan fuera del rango deseado");
            }
            if (lblAFA.getText().equals("Aprobado") && lblAcreditacion.getText().equals("Aprobado")) {
                lblPromo.setText("Aprobado");
            } else if (lblAFA.getText().equals("Aprobado") && lblAcreditacion.getText().equals("Reprobado")){
                lblPromo.setText("Reprobado");
            }else if (lblAFA.getText().equals("Reprobado") && lblAcreditacion.getText().equals("Aprobado")){
                lblPromo.setText("Reprobado");
            }else if (lblAFA.getText().equals("Reprobado") && lblAcreditacion.getText().equals("Reprobado")){
                lblPromo.setText("Reprobado");
            }
        }
    }//GEN-LAST:event_txtA2KeyPressed