devi aggiungere un KeyListener al field, al keyTyped o keyReleased controlli la lunghezza del testo e cancelli
:adhone: