private void jTextField2KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField2KeyReleased
        // TODO add your handling code here:
         if(this.jTextField2.getText().length() <= 30){
validacionVentanas.validarLetras_y_Espacios(jTextField2);
        }else{
        JOptionPane.showMessageDialog(null,"Nombre demasiado largo\n solo se permiten 30 caracteres");
        this.jTextField2.setText(this.jTextField2.getText().substring(0, 30));
        }
    }//GEN-LAST:event_jTextField2KeyReleased