Guest_imported
New member
- Jan 1, 1970
- 0
This should be easy i guess... I need to create a JTextBox that would only allow 2 characters to be inserted. I thought that by doing new JTextBox(2) would solve the problem, but it doesn't... I can't add a keylistener to it and every time the user presses a key I would check the length of the textbox.getText string, but there should be a immediate way right?