private void preventSpChar(java.awt.event.KeyEvent e){
        char c = e.getKeyChar();
        String s = c + "";
        
        if(s.matches("[\\\\\\\\!\\\"#$%&()*+,./:;<=>?@\\\\[\\\\]^_{|}~\\[\\]]")){
            e.consume();
        }
    }