private void txtS1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtS1KeyPressed
        if (evt.getKeyCode() == 10) {
            Integer to = Integer.valueOf(txtB2.getText()) + Integer.valueOf(txtS1.getText());
            if (to >= 28 && to <= 40) {
                lblFS.setText(String.valueOf(to));
                lblAcreditacion.setText("Aprobado");
            } else if (to < 28 && to > 0) {
                lblFS.setText(String.valueOf(to));
                lblAcreditacion.setText("Reprobado");
            } else {
                txtS1.setText("");
                lblFS.setText("");
                lblAcreditacion.setText("");
                lblMensaje.setText("Los valore ingresados estan fuera del rango deseado");
            }
        }
    }//GEN-LAST:event_txtS1KeyPressed