title: JavaFX 2.2 TextField maxlength
body: <p>I am working on a JavaFX 2.2 project and I have a problem using the <code>TextField</code> control. I want to limit the number of characters that a user will be able to enter into each <code>TextField</code>. However I can't find a property or something like <em>maxlength</em>. The same problem existed in <em>Swing</em> and was solved <a href="https://stackoverflow.com/questions/3519151/how-to-limit-the-number-of-characters-in-jtextfield">this</a> way. How to solve it for JavaFX 2.2?</p>