private void noloteFieldKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_noloteFieldKeyTyped
        // TODO add your handling code here:
         if (!Character.isLetterOrDigit(evt.getKeyChar()) && !Character.isISOControl(evt.getKeyChar()) && evt.getKeyChar() !='-' && evt.getKeyChar() != '.')        
        {
            Toolkit.getDefaultToolkit().beep();
            evt.consume();
        }
          if(noloteField.getText().length() == 45)
        {
            Toolkit.getDefaultToolkit().beep();
            evt.consume();
            JOptionPane.showMessageDialog(this, "Numero de lote demadiado largo.", "ADVERTENCIA", WIDTH);
        }
    }//GEN-LAST:event_noloteFieldKeyTyped