libgdx/libgdx — pull request #115 by newtzgames (2012-11-15 02:44:30+00:00)
Title: Max Length on TextField

I found myself needing a max length restriction on the TextField, and the methods within the class that would need overridden are private or unavailable for overriding.

This pull request adds native support for that max length. By default, it's set to zero, which means unlimited. To turn it on, just call setMaxLength() with some value > 0.