Is there a way to set a maximum number of characters that can be entered into a JTextfield?
For example, if I initialized a textfield with
Code
new JTextField(5);
I only want the user to be able to enter a maximum of 5 characters.
This post was edited by tt_toby on May 17 2013 01:11pm