title: Remove InputVerifier from JTextField
body: <p>I'm really surprised <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/InputVerifier.html" rel="nofollow">this is not in the documentation</a> or <a href="https://www.google.cz/search?q=remove%20inputverifier%20jtextfield%20java" rel="nofollow">at least google</a>.</p>
  
  <p>I have a class that is likely to need to remove the verifier or replace it with another one. In particular, these methods are defined in the interface:</p>
  
  <pre><code>  /**
     * Add the verifier
     */
    public void bind();
    /**
     * Remove the verifier from input
     */
    public void unbind();
  </code></pre>
  
  <p>I can implement <code>bind</code>:</p>
  
  <pre><code>  /**
     * Binds the events to the field using InputVerifier
     */
    @Override
    public void bind() {
      //Internal verifier
      final SettingsInputVerifier&lt;T&gt; verif = this.verifier;
      //Event to be called if new value is valid
      final ValueChanged&lt;T&gt; onchange = this.onchange;
      //Only works when you leave the field
      field.setInputVerifier(new InputVerifier() {
        @Override
        public boolean verify(JComponent in) {
          //If verification fails, return false and ignore the value
          if(!verif.verify(in))
            return false;
          //Sucessful verification means we get the value and update it
          onchange.changed(verif.value(in));
          return true;
        }
      });
    }
  </code></pre>
  
  <p>But how can I <strong>unset</strong> input verifier from JTextField?</p>