private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyReleased
        // TODO add your handling code here:

        if(this.jTextField1.getText().length() <= 30){
validacionVentanas.validarLetras_y_Espacios(jTextField1);
        }else{
        JOptionPane.showMessageDialog(null,"Nombre demasiado largo\n solo se permiten 30 caracteres");
        this.jTextField1.setText(this.jTextField1.getText().substring(0, 30));
        }

    }//GEN-LAST:event_jTextField1KeyReleased