Reputation: 568
Is there a built-in method for stopping user input when a certain number of characters have been entered? I was looking for an alternative to VerifyListeners.
Upvotes: 2
Views: 3250
Reputation: 503
Do you mean that you want the input to your text field to be limited to a certain number of characters (at the same time)? In that case, you can use Text.setTextLimit()
(see this answer).
Upvotes: 3