Create a length-limited text field class
Use JTextFieldLimit instead of hijacking key typed events