JTextArea and typing one char at a time!
Hi everyone!
I'm developing an small app. In certain cases, the user may want to edit a little piece of text. For this, I show a new Frame with a JTextArea with the selected text, so the user can edit it...
But I want to control this edition: the user only can type one char at a time, disable selecting text and waiting a short time (250ms) between char and char...
Some ideas? Some suggestion?
Should I use keylistener and wait for the KeyPressed event and wait inside 250 ms?
The reason for the waiting: when the user type a new char (or delete an existing one), I need to do some calculations. And it must be char by char, if the user select text and replace it, or if the user type fast... my program crash.
Thanks in advance!

