title: How does setInputVerifier(InputVerifier inputVerifier) work?
body: <p>I've got code:    </p>
  
  <pre><code>public class SerialNumberInputVerifier extends InputVerifier {
  @Override
  public boolean verify(JComponent input) {
      String text = ((JTextField) input).getText();
      if(text.length()!=6)
          return false;
      try {
          Integer value = Integer.parseInt(text);
          return true;
      } catch (NumberFormatException e) {
          return false;
      }
  }
  </code></pre>
  
  <p>It seems to work fine, do all the checkings. But I'm not sure about setInputVerifier(InputVerifier inputVerifier). It just doesn't allow me to input to another field, but I simply can push a button and a wrong data have been sended. So how could I possibly handle that?</p>
  
  <p>Thanks.</p>