title: How can I get the length of a JTextField's contents as the user types?
body: <p>JTextField has a keyTyped event but it seems that at the time it fires the contents of the cell have not yet changed.</p>
  
  <p>Because of that .length() is always wrong if read here.</p>
  
  <p>There must be a simple way of getting the length as it appears to the user after a key stroke?</p>