title: Clear a typed character during runtime in jTextField
body: <pre><code>private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {
  int x=evt.getKeyCode();
  if(x&gt;=96&amp;&amp;x&lt;=105)
    {
        evt.setKeyCode(8);//Here 8 is used for Backspace key to remove the numeric character entered
    }
  </code></pre>
  
  <p>Int This code i want the user not to type any numeric value in jTextField but if he does so then i m trying to remove it off during runtime only.... I wrote this code but its not working as i expected it to be...
  <strong>Plzz Help me!!</strong></p>